LOTUSSCRIPT/COM/OLE CLASSES


Examples: EditDocument method
1. This view action script opens the document that's currently highlighted in the view in Edit mode.
2. This view action script opens the document that's currently highlighted in the view in Edit mode, and moves the insertion point to the Body field.
3. This agent opens a specified document in Read mode. The document is selected through GetDocumentByKey from a view sorted on the CustomerNumber field.
4. This agent opens a specified document in Read mode to the anchor link whose text is "Address," and prevents the user from switching to Write mode. The document is selected through GetDocumentByKey from a view sorted on the CustomerNumber field.
5. This agent suppresses returning the NotesUIDocument object because it executes in the frame in which it is opening the document. Otherwise, the error lsERR_LSXU13_ANCESTOR_TARGET_FRAME would be raised. The document opens but the returned NotesUIDocument object is Nothing. See also the next example.
6. This agent does not suppress returning the NotesUIDocument object but traps the error lsERR_LSXU13_ANCESTOR_TARGET_FRAME. In this case, the document does not open.
7. This action is on a form for response documents. It edits the parent document using the existing UI instance if any.
See Also