Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Export to xml (in memory)

$
0
0
Well, we have a listGrid from which we want to get out the results onto a custom PDF (generated through iText, etc), then the main idea, is to generate a xml data to send it to our java method which generates PDF file.
The problem/question is how to get this xml data "on memory" and not to download, I mean, we are searching a solution in this way:

Code:

myGrid.exportData({exportAs: "xml",
                                  exportToClient: true  // To achieve get to function callback
                                  function (dsResponse, data, dsRequest) {
                                                ...
                                                // Don't we should get xml result in this callback?
                                                ...
                                                // If we will get xml here, then we could send it to our Java custom PDF method (or any other subroutine)
                                  }
);

But always we get data is for download, and not in callback, so this is not valid for us.
What do we wrong?
What do you suggest to achieve our objective?

Thanks in advance.


We are working under:
v9.0p_2013-08-20/PowerEdition Development SC and IExplrorer 10.0.9200 navigator, Eclipse Helios and Tomcat 7.0.28

Viewing all articles
Browse latest Browse all 4756

Trending Articles