Expand my Community achievements bar.

Access certain objects in an expanded table

Avatar

Level 1

How do you access a specific row of an expanded table? For example, a table expands to 3 rows. Each row has another table that has some fields. After expansion, how do I access a field in the 3rd row that was expanded?

Thanks!

1 Reply

Avatar

Level 10

You have to resolve to the particular row to get access to its field's values.

var i=2;

var oNode = xfa.resolveNode("xfa.form1.Page1.Table1.Row1[" + i + "]");

To access the 3rd instance of Row1, pass 2 for the value of i.

Then access the individual fields in Row1[2] by the following syntax.

     oNode.TextField1.rawValue;

Thanks

Srini