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

AVEVA™ Manufacturing Execution System 2023 R2

Configure ​.NET control event scripts

  • Last UpdatedNov 26, 2024
  • 2 minute read

You can configure a System Platform script that runs when a .NET control event occurs. You do this using the Event animation.

Configure a System Platform script for a .NET control event

  1. Double-click the embedded .NET control on the canvas.

    The Edit Animations dialog appears.

  2. In the animation list, click Event.

    The right pane shows the events configuration.

    The Edit Animations dialog used to specify the script to run when a .NET control event occurs.

  3. In the Event list, select the event for which you want to execute a script.

    The Parameters list shows for the selected event:

    • Type: the data type of each parameter.

    • Name: the name of each parameter.

  4. In the script area, write the event script.

  5. If you want to insert an event parameter in your script, click the Browse Event Parameters icon. Select the parameter. The parameter name is inserted into the script at the cursor position.

    A list of example parameters displayed when the Browse Event Parameter icon is selected.

  6. If you want to configure scripts for other events, select the event from the Event list.

    You can select the following three main events from the Event list:

    • SelectedRowChanged

    • PreButtonClick

    • PostButtonClick

  7. The script area is cleared and you can write the script for the newly selected event.

  8. When you are finished, save and close.

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