I try to display dummy document with one Text field and one RichText field using workspace.dialogbox.
Both fields are on the form.
But RTFIELD displayed as blank while TFIELD displayed OK.
Following is the code:
Begin:
Dim workspace As New NotesUIWorkspace
Dim session As New NotesSession
Dim db As NotesDatabase
Dim tempdoc As NotesDocument
Dim RTFIELD As NotesRichTextItem
Set db = session.CurrentDatabase
Set tempdoc = db.CreateDocument
tempdoc.form = “TESTForm”
Set RTFIELD = New NotesRichTextItem(tempdoc, “RTFIELD”)
Call RTFIELD.AppendText( “Rich Text Value” )
tempdoc.TFIELD = “Text field value”
Call workspace.DialogBox _
(“TESTForm”, True, True, False, False, False, _
False, “Title.”, tempdoc)
:End
Avantually, I am planning to insert into RTFIELD couple of docLinks do different db.docs(I also would appriciate comments on that).
Thanks