PML Customisation
User Guide
PML Add-ins
:
Application Switching
: PML Application Control Object
PML Application Control Object
The PML Add-in control object is a user-defined object type used to configure and control an add-in. A global variable of the same name is created automatically by the system at module startup. E.g. !!myAddinController = object MYADDINCONTROLLER().
Methods on this object can be executed at ModuleStartup and at the other application events. E.g.
# Description: Add-in application definition
# --------------------------------------------------------
name: MYADDIN
CONTROL: MYADDINCONTROL
title: MYADDIN
showOnMenu: TRUE
modulestartup: !!MYADDINCONTROL.moduleStartup()
startUp: !!MYADDINCONTROL.startup()
SwitchModify: EQUI :!!MYADDINCONTROL.startup('EQUI')
Note:
It is important to avoid intensive and time consuming operations in the control object constructor or in the modulestartup callback because this could cause performance problems when the module starts.
Note:
Make sure that your defined control object has been added to the PML index to avoid problems when the module starts.
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.