Skip to Content
avatar image
Former Member

SaveXML and LoadXML problem

Dear All,

I have been struggling with the issue for long unable to find a solution.

My problem in short : I have a input box, the user enters some value in it and clicks on nextpage button to navigate to next page.

So before navigation I need to save the input box entry into XML so that when he returns back to page, I can load the data back using loadXML.

I am storing the savedXML in javascript array referencing the page and then retrieving the information based on page and trying to load the XML.

Currently I am doing a test run with two input boxes in same page.

I am entering some value in the input box and saving it as XML in another textbox. I edit this XML test box to change the entered value, then I hit loadXML button, so that the modified value sits in the textfield, but this is not happening.

the root node is data

my current code while saving

var sXML = xfa.form.data.Page_1.TextField1.saveXML();

TextField2.rawValue = sXML;

My current code while loading

xfa.datasets.data.loadXML(dataToLoad,0,1);

The new values doesnt seem to load................plssssssssssssss help

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Jul 30, 2010 at 10:57 AM

    What do you mean by navigation to next page? Is the navigation within Adobe Form our outside it?

    I do not think there is any setting to be done to retain the values when you navigate page1 to page2 within Adobe Form, by default it's there.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Yes, I am navigating from one page to another page in the form.. The form is too huge with around 12 pages,, we show only one page at a time. When I navigate from one page to another, I store the data by converting it to XML and load it back if the user navigates back again.

  • Aug 17, 2010 at 02:02 PM

    Hello,

    I don´t understand why do you do this or you did not understand how you´re supposed to use Adobe forms.

    Could you please elaborate a little about the task? Explain why do you insist on doing it this way.

    Regards Otto

    Add comment
    10|10000 characters needed characters exceeded