RichText objects appearing in UIDoc

RichText objects appearing in UIDoc

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

    Requires Free Membership to View

    Register today to access targeted resources from our editorial writers and independent industry experts focused on Lotus Domino, Notes, Workplace and other related technologies.

    By submitting your registration information to SearchDomino.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchDomino.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

This was first published in August 2001

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.