Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

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.