Example: Configure an event script for the Utilization control
- Last UpdatedNov 26, 2024
- 1 minute read
Install and embed the Utilization control into a symbol as described in:
In this example, when one of the rows in the Utilization grid is selected, a message is logged in the Operations Control Management Console Log Viewer.
Configure the Utilization control to log a message when a row is selected
-
In the System Platform Industrial Graphic Editor, double-click the embedded Utilization control.
-
In the animation list, click Event.
-
In the Event list, click the SelectedRowChanged event.
-
In the script area, type the following:
LogMessage("User selected a row.");
-
Save and close the Edit Animations dialog box.
-
Save and close the System Platform Industrial Graphic Editor.
-
Embed the symbol in a managed InTouch application.
-
Switch to run time and log on to the software.
-
Select a row in the grid of the Utilization control.
-
Check the Log Viewer. The message appears.