LOTUSSCRIPT/COM/OLE CLASSES


ComposeDocument method
Example

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$


file$
form$
windowWidth#
windowHeight#
returnNotesUIDocument
Return value

notesUIDocument


Usage

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