Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

XMLData.parse method doesn't work when printing

Avatar

Level 2

Dear all,

        I created a form with several drop-down lists by using Aodobe Designer ES1. I used the XMLData.parse method to retrieve external XML data in order to insert the display value and data value into drop-down lists.

Form is working on screen. However, when we try to print it out, we found that the XMLData.parse menthod doesn’t work during generating the PDF output. The drop-down list’s field in form is just shown the data value, not the display value!

Question:

     Are there any functions in javascript to instead of XMLData.parse method? Or any way to do this?

2 Replies

Avatar

Level 10

I would suggest that you use the E4X support that is inherent in Javascript. I have included a sample that shows how to use it. The sample does not add data to a DDList but shows how to manipulate the XML. When you eventually add the data to the list you woudl use an addItem(displayValue, dataValue) command.

Paul