What Are Commands?

Commands are used to perform an action related to the application interface. For the most part, commands mimic menu options and tend to be used primarily in action buttons, hotspots, agents, and events. For example, commands can be used to

  • Compose a new form
  • Edit, save, or close a form
  • Jump to a field and insert text
  • Attach a file
  • Send an email
  • Open the database help document

Note

@Commands cannot be called from LotusScript and, with few exceptions, cannot be implemented in Web-based applications.

The following table represents some of the most frequently used commands. In most cases, these commands would be placed in an action button for a given form.

Command

Description

Example

FileSave

Saves the document currently displayed in the Lotus Notes client. Syntax:

@Command ( [FileSave] );
 
@Command
 ([FileSave]);
 

EditDocument

Toggles between edit and read mode for the currently opened document. Optionally, if you set the edit mode to 1, the document only goes to edit mode. If the mode is set to 0, the document goes to read mode. Syntax:

@Command([EditDocument]; mode; pane)
 

modeSet to 1 for edit, 0 for readonly.

paneSet to 1 to display in preview pane.

@Command
 ([EditDocument]; 1)
 

CloseWindow

Closes the document currently open in the Lotus Notes client. Syntax:

@Command ( [CloseWindow] );
 
@Command
 ([CloseWindow]);
 

Compose

Creates a new document based on the specified form. Syntax:

@Command ([Compose]; form);
 

formAn existing form in the database.

@Command([Compose];
 "NewEmployee");
 

EditGoto-Field

Places the cursor in the specified field on the document. Syntax:

@Command ([EditGotoField]; fieldname);
 

fieldnameName of a field on a form.

@Command
 ([EditGotoField];
 "Title");
 



An Introduction to the Lotus Domino Tool Suite

Getting Started with Designer

Navigating the Domino Designer Workspace

Domino Design Elements

An Introduction to Formula Language

An Introduction to LotusScript

Fundamentals of a Notes Application

Calendar Applications

Collaborative Applications

Reference Library Applications

Workflow Applications

Web Applications

Design Enhancements Using LotusScript

Design Enhancements Using Formula Language

View Enhancements

Sample Agents

Miscellaneous Enhancements and Tips for Domino Databases

Data Management

Security

Application Deployment and Maintenance

Troubleshooting

Appendix A. Online Project Files and Sample Applications

Appendix B. IBM® Lotus® Notes® and Domino®Whats Next?



Lotus Notes Developer's Toolbox(c) Tips for Rapid and Successful Deployment
Lotus Notes Developers Toolbox: Tips for Rapid and Successful Deployment
ISBN: 0132214482
EAN: 2147483647
Year: N/A
Pages: 293
Authors: Mark Elliott

Flylib.com © 2008-2020.
If you may any questions please contact us: flylib@qtcs.net