1
0
-1

Hi Team,

I am able to get the entire form data using the Form.getDataXml(false, true) API Method, but my concern is to get data for particular page data. Eg.i have form with three pages and if i am in first page i need to get that page data alone, and if in second page that data alone and same for other pages too. so please help on this.
thanks

    CommentAdd your comment...

    3 answers

    1.  
      2
      1
      0

      Hi,

      This post might provide some assistance to you... how can i get and identify page specific data?

        CommentAdd your comment...
      1.  
        1
        0
        -1

        Hi

        This is not really achievable in Transact. The reason for this is that the XML data is a pure data representation, and is not implicitly bound in any way to the structure of the form. For example, you could potentially split a particular page into two separate pages, and still keep the XML the same.

        Of course, you can choose to arrange your XML data in such a way as to reflect the structure of your form. In this case, you can extract a particular root element from the XML rather than all of it, or use some of the other techniques mentioned.

        May I ask what problem you are trying to solve?

          CommentAdd your comment...
        1.  
          1
          0
          -1

          I have a form that's bound to an XML schema. I grab portions of the XML via the following script:

          var xmlOut = $.parseXML("<root></root>");
          var xmlIn = $.parseXML(Form.getDataXml(true, true)); 
          $(xmlOut).children(0).append($(xmlIn).find("nameOfNode1"));
          $(xmlOut).children(0).append($(xmlIn).find("nameOfNode2"));

          This builds up a new xml object that I pass to a service. You should be able to use the code above while inspecting your form xml to get to where you want. 

            CommentAdd your comment...