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

AVEVA™ Work Tasks

control​.associatedForm

  • Last UpdatedJun 25, 2024
  • 1 minute read

Use associatedForm method to get the immediate record form object.

Syntax

control.associatedForm;

Parameters

None.

Return Value

This method returns a control object.

Example

// Consider a Base Form with Text controls for

// Employee ID, First Name, and Last Name, and a

// Button control for displaying the employee names.

// Define On Click script for the Button control.

baseFormObj.items()[0].findByXmlNode("EmployeeID");

// Get the associated record to which the Button control belongs to.

var associatedForm = control.associatedForm;

// Display the employee names.

skeltaUtils.showAlert("Employee Name is " + associatedForm.findByXmlNode("FirstName").value + " " );

Refer to Delete Record in a Base Form Control for more example(s).

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