- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Paul,
Here is what I was trying to do. I tested it in the exit event of my dropdown list and it worked perfect. It returned the subordinate node placement in the xml.
-------------Begin Code --------------
//Parse my xml from the text field.
var myXML = XMLData.parse(topmostSubform.Page1.subformStatChngForm.subformEmployeeData.subformEmplChanges.txtXMLString.rawValue, false);
//Since I already stored the node length in another field on the initialize event of my subform I was able to use that for the For loop.
for(var i=0; i<topmostSubform.Page1.subformStatChngForm.subformEmployeeData.subformEmplChanges.sNodeCount.rawValue; i++) {
if (xfa.resolveNode("topmostSubform.Page1.subformStatChngForm.subformEmployeeInfo.txtStatEmplID").rawValue == myXML.Subordinates.nodes.item(i).nodes.item(0).value)
{
xfa.host.messageBox("Selected Index = " + i);
break;
}
}
-------------End Code --------------
Thank you for all of your help!! I may need to start a blog to pass this along to others.
Thanks,
John
Views
Replies
Total Likes