Lotus Notes FAQ Visit Our Sponsor!

How do you display documents created with a form using a layout region?

Use LotusScript in the QueryOpenDocument Event of the view to do this:

Set the variable CONTINUE = FALSE to prevent the document from being displayed using the form.
Get the collection from the NotesUIView.Documents property (the NotesUIView is the SOURCE variable for the event). The first document in the collection is the one the user is trying to open.
Use the NotesUIWorkspace.DialogBox method to open this document.

Applies to Notes Versions: 4 4.5 4.6 5
Last Modified: December 20, 1997