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

AVEVA™ Work Tasks

On Check Change

  • Last UpdatedJun 25, 2024
  • 1 minute read

Use scripts for the On Check Change event of a Tree control to accomplish a desired operation when the state of a checkbox of a node is set or cleared.

Example

If you want to show an alert indicating status of the checkbox status of the effected node., then you can code the script for the On Check Change event of the control as follows:

//Show an alert indicating the checkbox status of the effected node.

var status = isChecked ? "set" : "cleared";

window.alert("node's checkbox has been " + status);

Note:
- This event is fired when the checkbox status of every node is modified.
- In cases where the Inherit Checked State property is set to Yes or the Checkbox Behavior property is set to Single, then the event is fired once for each effected node as the tree automatically sets or clears the check states.

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