Hi there,
I'm having a hard time getting the export functionality to work of a ListGrid.
My DataSource has a custom data url set, and for the export action I have this code:
Pretty much exactly like in the showcase.
However, when I actuall call this function I get this error:
Where the "datasource.ds" is the URL I set as a DataURL of the datasource.
Three questions:
1. Should this work OOTB with a custom datasource?
2. How do I control which URL is called if I have to (if it doesn't work OOTB)
3. If it doesn't work OOTB for custom data sources, what do I have to call server or client side to get the exact same results as the regular datasource functionality?
Regards,
Kees.
I'm having a hard time getting the export functionality to work of a ListGrid.
My DataSource has a custom data url set, and for the export action I have this code:
Code:
DSRequest dsRequestProperties = new DSRequest(); dsRequestProperties.setExportAs(ExportFormat.CSV); dsRequestProperties.setExportDisplay(ExportDisplay.DOWNLOAD); grid.exportData(dsRequestProperties);
However, when I actuall call this function I get this error:
Code:
http://localhost:8888/datasource.ds/Results.csv?isc_rpc=1&isc_v=SC_SNAPSHOT-2010-02-23&isc_tnum=1
Three questions:
1. Should this work OOTB with a custom datasource?
2. How do I control which URL is called if I have to (if it doesn't work OOTB)
3. If it doesn't work OOTB for custom data sources, what do I have to call server or client side to get the exact same results as the regular datasource functionality?
Regards,
Kees.
Comment