×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Moving from one document to another using DocLink

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

San What is that you want , do u need to call other document by client or web.Please let me know

RE: Moving from one document to another using DocLink

(OP)
I want to call the other document in client environment.


Thx for it.

RE: Moving from one document to another using DocLink

You can use LotusScript to open another document if you have the UNID.
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

(OP)
Unid is gathered by @dblookup or by Script formula getalldocumentbykey . but the Unid or found Document has to be open in the workspace user interface.

RE: Moving from one document to another using DocLink

(OP)
The Hidden View records the parent and child info. On using formula @DBlookup many times it is unable to return the match document. Pls tell Me if y script i finds it then how can i goes for opening the searched document in Workspace. Cause in formula we have @opendocument

RE: Moving from one document to another using DocLink

Well, if you have the right UNID, opening the document is easy. If we assume that DocID is the field on the form that holds the UNID to open, then create a button and put this code in the click event :

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

(OP)
HY pmonett,
I  believe this code will work for me. Thanks for yours support.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close