Moving from one document to another using DocLink
Moving from one document to another using DocLink
(OP)
I am not able to open from a document from another document with the help of Document Unique ID . Pls tell me if there is some another way by how i can open a particular document from one document to another.The Error is being thrown away on the use of @DBlookup to search a particular Document ID .
RE: Moving from one document to another using DocLink
RE: Moving from one document to another using DocLink
Thx for it.
RE: Moving from one document to another using DocLink
Unfortunately, it means that you'll need a button or a hotspot to do that.
How exactly is the UNID gathered, and under what circumstances does the user wish to get to the other document ?
Pascal.
RE: Moving from one document to another using DocLink
RE: Moving from one document to another using DocLink
RE: Moving from one document to another using DocLink
dim session as new notessession
dim ws as new notesuiworkspace
dim db as notesdatabase
dim uidoc as notesuidocument
dim uitarget as notesdocument
dim doc as notesdocument
dim targetdoc as notesdocument
dim docid as string
set db = session.currentdatabase
set uidoc = ws.currentdocument
docid = uidoc.fieldgettext("docID")
set targetdoc = db.getdocumentbyUNID(docID)
call ws.editdocument(false,targetdoc,true)
And presto ! The linked document opens. I tested this code and it works for me, so you should have no problem.
RE: Moving from one document to another using DocLink
I believe this code will work for me. Thanks for yours support.