FORMULA LANGUAGE


Compose @Command
Example

Creates a new, blank document.

Syntax

@Command([Compose]; server : database ; form ; width : height)

Parameters

server : database


form
width : height
Note The width/height parameter has no effect in Release 5 and later.

Usage

To use this command in Web applications, use the following syntax:

@Command([Compose]; form)

When you compose a response document, make sure a database is open and a document is already selected at the view level. See ComposeWithReference for composing response documents with references to the main document.

When the command is used to compose main documents, the target database does not have to be open. This command adds a database icon to the workspace.

If the command is used in a view action, the form formula of the view will override the form specified in the @command. To avoid this problem add the following line to the form formula of the view:

@If(@IsNewDoc; @Return(Form); "")

For information about form formulas, see "Form Formulas" in "Programming Overview."

The width/height parameter does not apply in MDI mode when the window is maximized. When restored, the window returns to the size you specify. The measurement in inches matches the ruler bar in the editor, so that you can use the ruler bar to guide you in sizing the window. When you specify the width and height, you center the window in the enclosing Notes window (for MDI mode) or in the operating desktop (for Mac and SDI mode).

Language cross-reference

CreateDocument method in LotusScript NotesDatabase class

createDocument method in Java Document class

Example
See Also