Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Handling file exporting

    Hi All,

    From my development module, need to export the data from the response to the respective files namely (.csx,.xls, .ooxml, .json, .pdf & .xml). From exporting feature handling bunch of data's and avoid client side processing.I'd liek to go along with server side.

    Code:
      
      DSRequest parseReq =  new DSRequest();
      parseReq.setExportAs("csv");
      parseReq.setExportFilename("abc.csv");
      parseReq.setExportResults(true); 
      parseReq.setExportToClient(true);
      parseReq.setExportDisplay("download");
    DSResponse response  = parseReq.execute();
    From the above code it fetches the data but not downloading the CSV file from the browser. Is anything i need to add or missed any configuration in background.

    SmartGWT Version : Isomorphic SmartClient/SmartGWT Framework (v11.0p_2016-10-21/PowerEdition Deployment 2016-10-21)
    Browser version: Chrome V59.0
    Kindly provide your suggestions.

    #2
    This appears to be server-side code, but what matters is the client-side code that calls it, because a request that will result in a download has to be initiated in a special way.

    Just look at the examples of export: it takes just a call to exportData() client-side to do an export, and no server-side code such as the above will be required.

    Comment

    Working...
    X