- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
LC ES 8.2.1.3
I have a web service that outputs XML data and Designer calls the webservice and the XML data populates a text field. This works fine.
My problem is getting the data out of the text field to populate different fields in my form. I have done many searches and have tried many different things but still can't get the data out. I have made sure my form is dynamic xml.
Here is the last thing I have tried:
-------Begin Code -----------
Placed in testData:Intialize and the connectionSet is placed in Page1:Initialize.
var myXML = XMLData.parse(xmlData.rawValue, false);
var subNames = XMLData.applyXPath(myXML, "//Subordinates/Subordinate/full_name");
if (subNames == null) {
//no data
} else if (subNames.length == null) {
//not array, just a single value
topmostSubform.Page2.testData.addItem(subName.value);
} else {
for (var i = 0; i < subNames.length; i++) {
topmostSubform.Page2.testData.addItem(subName.item(i).value);
}
}
-------End Code -----------
I have been working on this for 3 days and still can't get it to work. The closest I have come is output in my testData text field that said "Object23485968".
Thank you in advance for your help
John
Solved! Go to Solution.
Views
Replies
Total Likes