FORMULA LANGUAGE


OpenDocument @Command
Example

Opens a document.

Syntax

@Command( [OpenDocument] ; writeOrReadOnly ; UNID ; width : height)

Parameters

writeOrReadOnly


UNID
width : height
Note The width and height parameters have no effect in Release 5 and later.

Usage

A database must be open to a document view and the view must contain the document you want to open.

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 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/Domino window (for MDI mode) or in the operating desktop (for Mac and SDI mode).

You can use this command in Web applications, but it must be used in conjunction with @Command([FileOpenDatabase]) or @Command ([OpenView]). You can use the URL command to open a document by its UNID; see the URL commands for opening documents by key section of the Application Development with Domino Designer guide.

Language cross-reference

EditDocument method of LotusScript NotesUIWorkspace class

GetDocumentByUNID method of LotusScript NotesDatabase class

getDocumentByUNID method of Java Database class

Example
See Also