Hi, I'm sure this will have been asked a thousand times before, but I can't find a definitive answer anywhere. I've been struggling for over a week now, and still can't get this working. Here's hoping!
I have a richtext field on a form (a profile document although I don't think that matters). When I add to the field in the UI and save, the content is saved (as expected). If, however, I obtain a handle from uidoc.document to the backend and append some text programmatically to the field. Seemingly no combination of rti.update, uidoc.refresh, uidoc.reload etc. will convince the backend changes to be included in the frontend (even after saving and reopening), although the field changes made through the UI are preserved. Here's a summary of the code in the querysave event for the form. Please could you have a look and offer some explanation/alternative code?
Dim wksp As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Dim doc As NotesDocument
Dim rti As NotesRichTextItem
Set uidoc = wksp.CurrentDocument
Set doc = uidoc.Document
Set rti = doc.GetFirstItem("theLog")
rti.Appendtext "Something to be added to the log"