Found something weird and not sure if I'm missing something in form setup or what. Here is the scenario:
I'm building a dynamic form. After creating XML data file from Access database, I then started building new form with this XML dataset. This is a process I've done in the past, with functionality built in to addInstances. When I do these instance adds, it is for adding multiple entries to one field, which should write the XML in multiple nodes like this:
-
12345678
-
22222222
-
33333333
What I've found is that this node will only write out like this if I remove the Data Connection after I've built the form??? The subform for this node example has to have Binding like this: $record.ExampleMapping[*]
Now, for the fields without addInstance, the Binding has to be like this: $record.GeneralInformation.CustomerZip
Am I doing something wrong in my design to have to basically add a Data Connection, build my form, then remove Data Connection and make sure everything ties (so will map to database design). I don't have the capability to link to database, so I'm basically using the Email XML to have sent to analyst, who drops XML file into folder and this loads into database.
I know a bit lengthy, but I'm hoping someone can make sense out of this.
Thanks in advance...
Have you tried testing the form you built in LC 8.2 in Acrobat 8? You could be seeing a bug in Acrobat 9.
Did you check the "ConnectionSet" and "DataSets" nodes in the XFA XML? The connectionset should be a simple reference to the original XML file, nothing else since it's not a real data connection. It's just there to give the data a format. The DataSets should be an XML structure that paralells the structure of the original XML file. Repeated nodes in the original XML should be marked as multiple instance nodes in the Datasets.
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