Hi
I’ve come across techniques in some code I’ve taken over that’s unexpected.
print “[” + “/” + dbfile + “/” + “_VEW” + “/” + UNID + “?OpenDocument” + “]”
A view with alias "_VEW " exists.
This works and opens the document - even tho the view does not include the doc as does not meet selection formula criteria (wrong form name). Does this mean that UNID can be used with any view to open a doc?
print “[” + “/” + dbfile + “/” + “_0” + “/” + UNID + “?OpenDocument” + “]”
Using “/0/” + UNID to open a doc in a database I’ve used; but what is significance of “/_0/”?
There is no view with name or alias “_0”.
Any clarifications welcome
Harry
Subject: LotusScript - viewname in URL
When using the…//?OpenDocument
…syntax to open a document, the following is true:
-
represents a valid database path and file, or a valid database replicaID.
-
If a view with the specified name, alias or UniqueID exists, this view is used, and if a Form Formula exists, it is applied.
If no such view exists the must specify a valid UniqueID. But it seems to be a common convention, that a zero “0” is used to indicate “no view”.
-
represents one of the following:
2.1 A uniqueID of a document
2.2 A NoteID ( must represent a valid view)
2.3 A key, which matches an entry in the first sorted volumn of
So it really doesn’t matter what you specify for (you may call it 0, _0, X, or anything you like) as long as represents a valid UniqueID. However, if does represent a valid view, any form formula defined in the view is applied.
Subject: RE: LotusScript - viewname in URL
Thanks Morten