Highlighted

Saving data to local folder

Avatar

27-03-2009

Hi, I am new using LiveCycle and this question would seem stupid but I create a form to enter clients data. I need to submit that data to a folder located in the same computer as an XML format. How can I set up the submit button to save the data in that local folder?



Thanks in advance.



Edmundo

Replies

Highlighted

Avatar

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692
pguerett

27-03-2009

You woudl not submit to your own machine. You can add a button to save the data locally. Put a normal button on the form. In the click event add this javascript code:



xfa.host.exportData("", false)



This will bring a dialog up and allow the user to choose the location and filename of the data file. If you do not pass parameters then the default extension of XDP will be used. By passing the false param then you are asking for a file extension of XML. In either case you are saving xml data it is just the extension that will change.