I have a data connection in my form and I need to loop through the data within the node items. On the form ready event I have:
var a = xfa.resolveNode("$record.message.node[*]...").value
The loop should replace the * with a number starting at 0 and run till done. It does not work. I have tried to modify this with resolveNodes and other attempts.
I was able to cheat a bit and create a dynamic table and load the data into the table first, then use the loop to go through the data within the fields. It works but this is an extra step, that I should be able to avoid.
Any help would be greatly appreciated.
the script I would like to use is below. Something is not working in setting the variable directly to the data node.
var vDescItems = xfa.resolveNode("$record.message.controlActProcess.reasonOf[*].detectedIssueEvent.value.c ode").value
for(i=0; i<vDescItems.length; i++)
{
if (vDescItems.item(i).rawValue == "C53566")
{
do something
}
}