Hi there.
I am pretty new to LN…so bear with me!
I am trying to open a document from a outline. Does this mean I have to open a view first or is there some way i can bypass displaying a view and open up the document directly from clicking on the outline entry?
Currently I have the following which opens the view “Configuration” which I don’t need the user to see:
@Command([OpenView];“Configuration”)
@Command([OpenDocument];“”;“86136A8B3D9E6CEFE9256EEB0036932F”)
Thanks for any help!
Subject: OpenDocument from outline
HiIf I get that right, you want to open one specific document with details about the configuration of that database. How about using a profile document. Lots of possibility to access them from anywhere in the code and it also works, if you make a copy or a template - the later I would suggest anyway - of that database.
Use the following forumla in the entry:
@Command([EditProfileDocument];“”)
You can get data from this document very easy with the formula @GetProfileField( profilename ; fieldname; uniqueKey )
The rest is in the help database. Search for:
profile document
Cheers
cti
Subject: OpenDocument from outline
Hi Ted,
From the Notes Designer Help DB:
@Command( [OpenDocument] ; writeOrReadOnly ; UNID ; width : height)
UNID: Text. Optional. The UNID (unique document ID) of the document you want to open. If you omit this parameter, Notes/Domino opens the currently selected document. The UNID is located in the Document properties on the Document IDs tab.
A database must be open to a document view and the view must contain the document you want to open.
If you have trouble using this command in the outline, try to create a document link (open the document, Edit-Copy As Link-Document Link). From the outline entry property box, use Link as type, and paste de doclink here.