Avatar

Correct answer by
Level 10

You can use the wildcard if you use resolveNodes() instead of resolveNode() and it's more efficient (on large forms it can make a difference).

var r = xfa.resolveNodes("Table1.Row[*]");

//variables more efficient if declared outside the loop

if (cbNotNeeded.rawValue == 1) {

     for (var i = 0; i < r.length; i++) {

          r.item(i).border = "0.069in";

          //and whatever else you need to set

     }

}

I think the syntax is correct there just going off the top of my head.

More info here: http://blogs.adobe.com/formfeed/2011/06/resolvenode-vs-resolvenodes.html

View solution in original post