I have an xPages application on the Notes client, and am using a lookup to a view to produce different help documents for each area of the application. These help documents can contain screen shots, links, and text.
I use a dijit.Dialog to display another xPage which just contains a rich text field and a close button. Into this rich text field, I want to dump the value of the rich text field from the looked up help document, but I can't seem to get this to happen. Here is what I have in the data area of the blank rich text field
var helpDocUNID = @DbLookup(@DbName(), "AdminHelpMaint", "Employer Profile", 2);
var doc = database.getDocumentByUNID(helpDocUNID);
This gets me the correct document. However, return doc.getValue("Help_Instructions"); just gives me a blank xPage.
If I use:
var stream = session.createStream();
var entity = doc.getMIMEEntity("Help_Instructions");
stream.close();
I also get a blank xPage.
If I add:
entity.setContentFromText(stream, "text/html;charset=UTF-8", 1725);
before the stream.close() I still receive a blank xPage.
If I just use the doc.getMIMEEntity.... and return entity without using the stream stuff I get "lotus.domino.local.MIMEEntity@42d142d1"
If I just have text in the help document, I can see it no problem, it's just once I start putting rich text items into it, that I can't retrieve the field data.
How can I copy all the data over from the Help rich text field and display it, in it's entirety, in the display xPage? This should be so simple, so maybe I'm just doing something incorrect.