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

AVEVA™ Operations Management Interface

Write an event handler script from the Properties grid

Write an event handler script from the Properties grid

  • Last UpdatedOct 10, 2024
  • 2 minute read

The underlying control of the AlarmApp includes a set of public properties and events that can be viewed from the Layout editor's Properties grid.The Available Events property near the bottom of the Properties list shows a list of AlarmApp events when it is selected. The listed events are prefaced with the name of the underlying control's property, as declared by the app.

After selecting a public AlarmApp event from the list, the Layout script editor opens to write an event handler script.

Write an Event Handler script using the Available Events property of the AlarmApp

  1. Open the Layout editor and show the items listed in the Toolbox tab.

  2. Select the AlarmApp from the Toolbox list to show its preview thumbnail.

    The Toolbox pathway to the AlarmApp is:

    _Default Content > 4. Apps > AVEVA OMI Apps > AlarmApp

    The preview thumbnail of the AlarmApp appears beneath the list of Toolbox items.

  3. Drag and drop the preview thumbnail of the AlarmApp onto a layout pane.

  4. Select the pane where the AlarmApp has been placed and select the Properties grid.

    AlarmApp properties appear in the grid. AlarmApp events appear in a list of the Available Events property.

  5. Select the data entry field of the Available Events property to show a list of events.

    Events are listed in alphabetic order.

  6. Select one or more events from the list.

    A selected handled event name appears in bold text.

    The Available Events property updates to show each selected handled event with a data entry field.

    All handled events without any script lines are listed in alphabetic order.

  7. Select the button at the right of the selected event's data entry field.

    The Layout script editor opens with the selected handled events listed beneath the Event Handler Scripts column. The focus of the Layout script editor will be the event handler you selected from the Available Events property.

    Embedded Image (65% Scaling) (LIVE)

    The Event field shows the selected event script from the list.

  8. Enter script code for each event handler.

    The number of lines in each event handler script are shown in the Available Events property of the Layout editor.

  9. Validate your script code by selecting the validation button at the right on the menu bar above the script edit area.

  10. Save your scripts and exit from the Layout script editor.

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