I have an application that I need the user to enter a PO # in a field and then have the database go open a document in a different database on the same server that matches the key they just entered. What would be the best way to accomplish this? I been looking through the help text and I see many different open document related commands. Any suggestions?
Subject: Opening a document in another database
Example: (see 2nd code)
Subject: Opening a document in another database
I’d use LotusScript. Get the other database, use GetDocumentByKey on a view sorted by PO numbers to get the right document, and the EditDocument method of the NotesUIWorkspace to open it up.
Subject: RE: Opening a document in another database
Use NotesUIWorkspace.EditDocument. It doesn’t require you to first open a view in the other database.
Subject: Opening a document in another database
If you want the document to open in the user interface, so the user sees it, then use the EditDocument method of NotesUIWorkspace. You can use it to open the document in read mode, curiously – one of LotusScript’s little quirks.