LOTUSSCRIPT/COM/OLE CLASSES
Using a database and form that you specify, creates a new document and displays it on the workspace.
Defined in
NotesUIWorkspace
Syntax
Set notesUIDocument = notesUIWorkspace.ComposeDocument( [ server$ [, file$ [, form$ [, windowWidth# [, windowHeight# [, returnNotesUIDocument]]]]]] )
Parameters
server$
Note This parameter is obsolete in Release 5.0 but is maintained for backward compatibility.
Note This parameter is new with Release 6.
notesUIDocument
If the ComposeDocument method is used in a view action, the form formula of the view overrides the form specified in the method. To avoid this problem, add the following line to the form formula:
@If(@IsNewDoc; @Return(Form); "");
For information about form formulas, see "Form Formulas."
This method raises the error lsERR_LSXU13_ANCESTOR_TARGET_FRAME (4426) if it attempts to return a NotesUIDocument object for a target frame that is the ancestor of the frame containing the code. You can suppress returning the object by specifying returnNotesUIDocument as False. The document opens in the target frame but you do not have access to its NotesUIDocument object. Calling this method as a subroutine does not suppress returning the object; you must specify returnNotesUIDocument as False.
Language cross-reference
Compose @command in formula language
Example See Also