cancel
Showing results for 
Search instead for 
Did you mean: 

Form Scripting - Accessing UI elements usg xfa.resolveNode or this.getField

Former Member
0 Kudos

Hi All,

For accessing the UI element using the script; we are using absolute path. For example,

xfa.resolveNode(" Test.Page8.Section1.field2.rawValue")

Instead of that, can we use more generic script as following:

var f = this.getField("field2");

Please let us know your inputs.

Thanks,

Ganga

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ganga,

xfa.resolveNode(" Test.Page8.Section1.field2").rawValue is the best option as with this you can access the field from any node of the hierarchy.

I never use var f = this.getField("field2"); but it clearly explains, it will fetch only the field with in the subform or the fields who are in the its branch of this object .

makes sense ...?

Sai