Avatar

Level 10

In the first example you give the [] cause an issue for javascript as those are reserved for arrays. You can use the xfa.resolveNode("string") to get to your instance....something like this:

var count = xfa.resolveNode("xfa.record.List1.List[0]").nodes.length ;

Now using this syntax you can replace the occurance number with a variable and put it in a for loop:

for (i=0;i<= 10;i++){

     count = xfa.resolveNode("xfa.record.List1.List[" + i + "]").nodes.length

}

Hope that helps

Paul