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

AVEVA™ Engineering

Example to Add an Event Handler

  • Last UpdatedSep 05, 2022
  • 1 minute read

The example gets the available status definitions and sets an event handler for the first definition.

!statusManagement = object statusManagement()

!statusDefinitions = !statusManagement.statuses()

!statusEvents = object statusEvents()

!statusEvents.initialise(!statusDefinitions[1])

!statusEvents.addEventHandler('BeforeStatusChange',

       !!handlerObject, 'beforeStatusChange')

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