Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 72601

Binding the exportXFAData(); method to the saveAs event

$
0
0

I have an XFA form that was built with LiveCycle and I'm trying to write Adobe javascript that will export the form's data to an XML file each time a user manually saves the file in Acrobat. Preferably this functionality is easily shareable since I'll have clients that need to have this ability.

 

I'm a novice but it seems that the Interactive Objects are all grayed out and so I can't add a custom button. Therefore I'm hoping to bind the exportXFAData(); method to the saveAs event. When a user either does CTRL+S or File>Save (As)  .. the XML should be exported to the Desktop.

 

It seems I need to use either the exportXFAData() or exportAsXFDF() method.  I found something that says: " It is a straightforward process to do this using the Doc object saveAs method....  " and provided this code:


this.saveAs("/c/temp/test.xml", "com.adobe.acrobat.xml-1-00");

 

I'm not sure where to write this code, or if it needs to be adapted (besides the path) to accomplish what I've requested above.

 

Thank you greatly,



Carl



Viewing all articles
Browse latest Browse all 72601


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>