This little tip allows you to add a doclink and have it appear immediately instead of closing the doc and opening again. The method actually works for any type of object added to a rich text field, (e.g. picture, link, attachment etc. etc.)
You can also use it for Computed Subforms for a different type of navigation. That is, change subforms on a document on the fly.
The idea is to set the
uidoc.editmode property to false, add the link (or object) to the RTI, save the doc and set the
uidoc.editmode property back to true.
'**Set up uidoc, doc and other document to link to, or object to store '** uidoc.editmode = false Set rtf = New NotesRichTextItem(doc,"Link") rtf.addnewline 1, False rtf.appenddoclink linkdoc,"Linked Document" doc.save True,True uidoc.reload uidoc.editmode = true