Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Engineering

Defining a Command

  • Last UpdatedOct 29, 2024
  • 1 minute read

A command is defined using the SETUP syntax as follows:

setup command !!cmdbutton

exit

-- Constructor

define method . cmdbutton()

!this.key = |AVEVA.Design.CommandButton|

!this.Execute = |execute|

Endmethod

The key and command members may be defined within the command setup. It is recommended that the command key and callbacks are defined in the constructor method.

The command key is used to uniquely identify the command when it is registered with the command manager. Similarly, any callbacks should be set before the command is registered

Note:
Once the command has been registered the key or callbacks cannot be changed.

All commands will at least need to handle the execute callback.

Related Links
TitleResults for “How to create a CRG?”Also Available in