Expand my Community achievements bar.

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

Former Community Member

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

Avatar

Level 2

Oh, Thanks a lot!

It 's working now.