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 UpdatedJul 17, 2024
  • 3 minute read

The underlying control of the HistoricalTrendApp includes a set of public properties, methods, and events that can be viewed fom the Layout editor's Properties grid. Near the bottom of the Properties grid is the Available Events property, which shows a list of HistoricalTrendApp events after being selected.

After selecting a public HistoricalTrendApp event from the list, the Layout script editor opens to code the event handler script.

Write an event handler script using Available Events property of the HistoricalTrendApp

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

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

    The Toolbox pathway to the HistoricalTrendApp is:

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

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

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

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

    HistoricalTrendApp properties appear in the grid. HistoricalTrendApp 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 to indicate that it is selected.

    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 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