HiI am appending to doclinks in a richtext item.I want the richtext to be non editable.,so that the users cannot edit doclinks contained in the field.i kept the richtext as computed field with its field name as formula and i wrote the following code in a button to create doclink.
Sub Click(Source As Button)
Dim ws As New NotesUIWorkspace
Dim ss As New NotesSession
Dim curdb As NotesDatabase
Dim doc As NotesDocument
Dim curdoc As NotesuiDocument
Dim newdoc As NotesDocument
Dim rtitem As NotesRichTextItem
Set curdb=ss.CurrentDatabase
Set curdoc=ws.CurrentDocument
Set doc=curdoc.document
Set rtitem=doc.GetFirstItem("attach")
Set newdoc=curdb.CreateDocument
newdoc.form="mainform"
newdoc.name=doc.GetItemValue("name")(0)
newdoc.subject=doc.GetItemValue("subject")(0)
Call newdoc.Save(True,False)
Call rtitem.AppendDocLink(newdoc,"newdoc",doc.GetItemValue("name")(0))
Call doc.Save(True,False)
Call curdoc.Close
End Sub
The above one is working for the first doclink .,but when appending the secondlink.,the firstlink is not opening the placed link document.(opening local addressbook)
Please give me idea., if any other way is there to get two doclinks in the rtitem