Hi all,
I have a big problem and I don't know what's the error. I have a xdp with a dynamic table with three columns (provincia, carreteras, localidades). My xdp has a data connection with an xml. For "provincia" field, i have in the xml file this code
...
so, when I'm using the pdf preview in LC, "provincia" field has all these values of the xml. My problem is I have a button which add a new row in my dynamic table with the same three columns but in these dynamic rows, "provincia" field is empty, the xml values for aren't add to this "provincia" dynamic field and I don't know why.
Any suggestion, please? Any advice will be appreciate
Thanks in advance
Dani
If the list item data is in an external XML file, then this file has to be imported before the items are added to the list. Once the XML file is imported, these values will persist in the forms data model. Creating new instances of the drop-down list should repopulate the list items from the existing data model.
I did a test, similar to what you described and it worked fine (on Acrobat 8). The form initially has three lines of a repeated subform. In the subform is a drop-down list. When the form was first opened, the drop-down was empty, no list items. Importing the XML populated the drop-down list items in each of the three lines. Each time a new instance of the subform containing the drop-down was created dynamically, it contained all of the list items. So I know this works.
Please explain your process in more detial. What version of Acrobat are you using?
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script