resolveNodes

Evaluates the specified reference syntax expression, beginning with the current XML form object model object, and returns the value of the object or objects specified in the reference syntax expression.

The search for an object starts at a different point in the form hierarchy, depending on how the resolveNode property was accessed:

  • this.resolveNodes() The search starts from the current object and moves up the form hierarchy.

  • xfa.resolveNodes() The search starts at the top of the form hierarchy and moves down.

    Note: The search could return unexpected results if the form contains several objects that use the same name. It returns the value of the first object that it finds.

Syntax

Reference_Syntax.resolveNodes( STRING param )

Parameters

param

A valid string representing a reference syntax expression that evaluates to one or many XML form object model objects.

Returns

A single object corresponding to the reference syntax expression, if it exists. If no such object exists, this method returns empty.

Applies to

tree class class

Version

XFA 2.1

Examples

JavaScript

xfa.resolveNodes("Subform1[*]");

FormCalc

xfa.resolveNodes("Subform1[*]")

// Ethnio survey code removed