ACTION DEFAULTS section

The ACTION DEFAULTS section defines local action view default attributes for the form elements.

Syntax

ACTION DEFAULTS
   ACTION action-identifier ( action-attribute [,...] )
   [...]
END
  1. action-identifier defines the name of the action.
  2. action-attribute defines an attribute for the action.

Attributes

ACCELERATOR, ACCELERATOR2, ACCELERATOR3, ACCELERATOR4, DEFAUTVIEW, COMMENT, CONTEXTMENU, IMAGE, TEXT, VALIDATE.

Usage

The ACTION DEFAULTS section must appear in the sequence described in form file structure. This section is optional.

The ACTION DEFAULTS section centralizes action view attributes (text, comment, image, accelerators) at the form level.

The section holds a list of ACTION elements and specify attributes for each action. The action is identified by the name following the ACTION keyword, and attributes are specified in a list between parenthesis.

The attributes defined in this section are applied to form action views like buttons, toolbar buttons, or topmenu options, if the individual action views do not explicitly define their own attributes.

If an attribute is not found in the form action defaults, and has not been defined specifically for the individual action view, the runtime system searches for the attribute value in the global action defaults.

ACTION DEFAULTS
  ACTION accept ( COMMENT="Commit order record changes",
                    CONTEXTMENU=NO )
  ACTION cancel ( TEXT="Stop", IMAGE="stop",
                    ACCELERATOR=SHIFT-F2, VALIDATE=NO )
  ACTION print ( COMMENT="Print order information",
                   ACCELERATOR=CONTROL-P,
                   ACCELERATOR2=F5 )
  ACTION zoom1 ( COMMENT="Open items list", VALIDATE=NO )
  ACTION zoom2 ( COMMENT="Open customers list", VALIDATE=NO )
END