Hi, i have the following code.I need add a doclink(uidoc) into a richtext field in another document.
Const DB_I = “DB_Inventory”
Set view=dbLocal.GetView(“Listas”)
Set docname=view.GetDocumentByKey(DB_I , True)
Set dbInv=sesion.GetDatabase(Strleft(docname.ContenidoLista(0),“:”) ,
Strright(docname.ContenidoLista(0),“:”))
Set vInv=dbInv.GetView(“ALL”)
key=doc.AppId(0)
Set dInv=vInv.GetDocumentByKey(key$)
Set rtlink = New NotesRichTextItem(dInv,“ChgReq”)
If rtlink.Type = RICHTEXT Then
Call rtlink.AppendDocLink(doc,“”,“”)
End If
dInv.Form=“Ficha”
Call dInv.Save(True,False)
any idea?
thanks in advance. sorry for my english.