Hi,
I want to open a document in Web.I am writing the following syntax in lotus script :
where docid is the universal ID of the document.But I donot want to hard code it.What is the syntax/process for this case ?
Thanks,
Manoshija Ghosh
Hi,
I want to open a document in Web.I am writing the following syntax in lotus script :
where docid is the universal ID of the document.But I donot want to hard code it.What is the syntax/process for this case ?
Thanks,
Manoshija Ghosh
Subject: Doclink in Web
Here’s a sample flexible Lotusscript code for both the database & the document unid:
Dim WebDbName As Variant
Dim Doc As NotesDocument
… get a handle to the document …
WebDbName = Evaluate(“@WebDbName”)
doclink=“http://10.31.8.117/” & WebDbName(0) & “/0/” & Doc.UniversalID & “?OpenDocument”
Alex
Subject: RE: Doclink in Web
Thanks…what is /0/ is used for…Also if I want to make the server name not hardcoded then how to go about it…
Subject: RE: Doclink in Web
The ‘/0/’ means the document can be opened from the database without having to specify a view id. I usually like to use ‘/0/’ because it makes the URL address shorter.
If don’t want a hard coded server name then put it in a profile or configuration document that can be edited and your code can reference the value from there.
Alex