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
This post might provide some assistance to you... how can i get and identify page specific data?
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?
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));
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.