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

AVEVA™ Work Tasks

Validate Scripts

  • Last UpdatedJun 25, 2024
  • 1 minute read

Validate a script to ensure the code is valid.

To validate a script

  1. In the Enterprise Console, click the Menu button, and then click Forms. The Forms page appears.

  2. Right-click on a form, and then click Design Form (or click on a form, and then click Design). The Forms Designer page appears.

  3. Point to the control, and then click the Properties button. The Properties dialog box appears.

  4. Click the Scripts tab, and then click the Script Editor button for the required property. The Script Editor page appears.

  5. Code the script, and then click Check Syntax. The code is validated.

  6. Correct the invalid code and then click Save & Close. The script is saved and the Script Editor page is closed.

Properties and Methods

The following properties and methods are validated:

Properties

Methods

  • enable

  • visible

  • readOnly

  • isMandatory

  • value

  • topLevelForm

  • findById()

  • findByXmlNode()

  • findByName()

Validation

  • Code is validated only when the Check Syntax button is clicked and not when the Save or Save & Close button is clicked.

  • Control specific syntax is validated only if the script starts with the control keyword.

  • User referenced JavaScript files are not validated.

  • Run-time scenarios are not validated.

var b = "T1";

control.findById(b).value;

var a = control;

// This line of code is not validated.

a.findById("T1").value

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in