PML Customisation
User Guide
Commands
: Defining a Command
Defining a Command
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.
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.