According to your DSRequest.setExportFilename javadoc:
This does not appear to be the case (smartgwt 6.0-p20171202):
i set it like this:
Regardless of whether i set .abc, .xml or something else as the filename ending, when the "exportFilename" parameter is sent to the server, the ending has been taken out and replaced with ".csv".
I tried calling setExportAs(null), no difference. If i call "setExportAs" with XML, the ending is changed to xml, but there are 2 problems:
1. I have the need to set a completely custom file ending for a custom export i do manually (via request.getRPCManager().doCustomResponse())
2. This behaviour does not seem to match what the javadoc says.
Inout appreciated.
Code:
If the exportFilename that you specify does not include an extension, one will be added to it based on the [URL="https://www.smartclient.com/smartgwt/javadoc/com/smartgwt/client/types/ExportFormat.html"]ExportFormat[/URL] specified by [URL="https://www.smartclient.com/smartgwt/javadoc/com/smartgwt/client/data/DSRequest.html#getExportAs--"]exportAs[/URL].
i set it like this:
Code:
DSRequest props = new DSRequest(); dsRequestProperties.setExportFilename("banana.abc"); grid.exportData(props);
I tried calling setExportAs(null), no difference. If i call "setExportAs" with XML, the ending is changed to xml, but there are 2 problems:
1. I have the need to set a completely custom file ending for a custom export i do manually (via request.getRPCManager().doCustomResponse())
2. This behaviour does not seem to match what the javadoc says.
Inout appreciated.
Comment