on 01-31-2011 6:53 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.