I have a form that is used by several different departments. Once its been filled out, I need to be able to send one copy of the form -- with all the data in one document -- on to a supervisor. I can export and import just fine, but that only allows me to overwrite the data in the form with the new imported data. How can I add data from one of the exported XML files to the existing data in the form? That way, I could export each copy to XML and then add them to each other, one at a time (all at once would be great too, of course).
I have manually opened then XML file that get exported and cut and pasted the instances out of each file into a single file, and have been able to import that successfully. What I need to now is how I can do this from within the form (say with buttons). I know I can create a form button to allow exporting to XML, and another one for importing too. From what I gather form some other post I've seen on this, I need to figure out a way to store the data in the existing form > import the new XML data > and then add the original data back. Unfortunately, that is where I start getting confused.
Could someone help me through the coding of this, or am I completely off track here? Specifically, how to I store the data so that its still available after I import the new XML data (and in what format)? Also, how do I reinsert the original data without overwriting the newly imported data? Is it safe to assume that these functions should be part of an "import" button on the form?
In case it helps, here are some specifics on my form. I have multiple instances of:
form1.ShipAVAILs.AvailBinder.AvailInstance.ShipSpacer
on each copy of the form. Inside of ShipSpacer, the are sever other fields with a bunch of data. In addition I may or may not have multiple instances of:
form1.CMAVs.CMAVBinder.CMAVInstance.ShipSpacer
in each form, with a similar set of sub fields inside. There are a few other fields, but none that I absolutely need to export/import (the data remains the same for all the submitters).
Thanks in advance for any help you can lend me on this issue.
You can control which fields import and export data. But the solution depends entirely on the kind of form you have. This would be much easier to do with an AcroForm. LiveCycle requires more work.
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]
Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script