Expand my Community achievements bar.

resolveNodes question

Avatar

Level 6
Hi,



I have a field and a subform in a form. They both have the same name (for instance "Test"). I would like to get a reference for each object, so I make this:



xfa.resolveNodes("xfa.form..Test");



However, only one object is returned... (I think that is the first one faund). I´m using xfa.form.. , because I don´t know what will be the name of the form for each document.



Thank you
2 Replies

Avatar

Level 6
Use the syntax xfa.resoleNodes("xfa.form...Test[*]");



If you omit the [*] you get unpredictable results. From the documentation:



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.



Jared Langdon

http://www.jlangdon.ca

Avatar

Level 6
Hi,



I tried that, but doesn´t works either.

I don´t know if the problem is to return different type of objects... but they all are xfa objects right?