By
Published: 06 Apr 2001
Sometimes in lotusscript it is not possible to open other notes databases or other database elements like views folders, documents, pages, framesets etc. A solution to this problem is by using the OpenURL method of the notesuiworkspace class.
To open a notes database use:
Call ws.Urlopen("Notes://serverName/DatabaseName")
Example:
Call ws.Urlopen("Notes://Notes2000/Intranet/Store.nsf")
Note: Instead of the database name you can use the database replica id.
Similarly to open a view/folder use:
Call ws.Urlopen("Notes://serverName/DatabaseName/ViewFolderName")
Example:
Call ws.Urlopen("Notes://Notes2000/Mail/nverma.nsf/Inbox")
Note: Instead of the view/folder name you can use the universal id of the
view/folder.
To open a document use:
Call ws.Urlopen("Notes://serverName/DatabaseName/ViewFolderName/documentUniqueID")
Example:
Call ws.Urlopen("Notes://Notes2000/Mail/nverma.nsf/Inbox/38D46BF5E8F08834852564B500129B2C")
To open a page use:
Call ws.Urlopen("Notes://serverName/DatabaseName/PageName?OpenPage")
Example:
Call ws.Urlopen("Notes://Notes2000/Mail/nverma.nsf/Calendar Picker?OpenPage")
To open a frameset use:
Call ws.Urlopen("Notes://serverName/DatabaseName/FramesetName?OpenFrameset")
Example:
Call ws.Urlopen("Notes://Notes2000/Mail/nverma.nsf/CalendarFS?OpenFrameset")
Dig Deeper on Domino Resources - Part 5