Announcement

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

    Export + No SC Server

    Question re export solution, i use PHP as the backend business logic and REST Datasources, understand from documentation that the export is not used for non SC Server deployments, however i have been playing around with the exportData process, i have the following tied to a LISTGRID

    this.exportData({
    actionURL:"/includes/applications/ajax",
    exportFilename:"ajax_handler.dml.xml.php?export=true&operationType=export&exportFilename=results.xls&dataSource="+this.dataSource,


    Note that i am basically overriding the ACTIONURL for these requests, also as i don't want the /results.csv notation on the target URL, i changed the exportFilename to be a combination of the target script and i am taking on GET parameters on the request, the backend logic then generates the XLS ( in this case data) and returns a response with headers as follows.


    header("Content-type: application/vnd.ms-excel");
    header("Content-Disposition: attachment; filename=$exportFilename.xls");
    header("Pragma: no-cache");
    header("Expires: 0");

    Question i have is, do you see any security or other issues with hacking around the exportData function as i have here... it works for me, pretty well in terms of exporting....
Working...
X