Expand my Community achievements bar.

Parsing XML file to associate and dynamically update other fields

Avatar

Former Community Member
Hello,

I am playing with adobe designer for the first time and was wondering if anyone had a javaScript example that could help with this particular issue. Currently, I have an XML dump from a database in which I have successfully traversed through and am able to bind a drop down list to all the P.O. numbers for a company. I was also from a change event able to update text fields with static text based on that change event. What im hoping to accomplish is that if the user selects a particular P.O. number from the drop down list that the rest of the form updates based on that P.O. for name, company, adress etc ...

Here is a sample XML dump that is close to what I am actually getting from work. With the generic purchase orders, how do I traverse the XML file and dynamically get the rest of the information based on the P.O number selected by the user?

The example has two separate purchase orders in it.




8745236985
2004-02-08


Any Company Name
555, Any Blvd.

Any City
ST
12345
Any Country
(123) 456-7890
(123) 456-7899
Contact Name




56788990
2006-02-08


Any Company Name
555, Any Blvd.

Any City
ST
12345
Any Country
(123) 456-7890
(123) 456-7899
Contact Name




Any help would be appreciated :)
1 Reply