Hi Isomorphic,
While evaluating SmartGWT 6.0 for CubeGrid, we noticed that when we export large dataset from CubeGrid, we get error: STATUS_MAX_POST_SIZE_EXCEEDED.
However, to resolve this, we want to limit the export size from the CubeGrid.
The base export code (almost same as from the showcase)
Ideally we would like to limit the data based on the size (Maybe allow exports only till export filesize is < 5 MB). Is this even possible?
The other option is to limit the amount of data (rows and columns) being exported!
For limiting the data, we tried using
which did not work!
How do I go about limiting the data to be exported when the user tries to export a large data set?
While evaluating SmartGWT 6.0 for CubeGrid, we noticed that when we export large dataset from CubeGrid, we get error: STATUS_MAX_POST_SIZE_EXCEEDED.
However, to resolve this, we want to limit the export size from the CubeGrid.
The base export code (almost same as from the showcase)
Code:
Button exportButton = new Button("Export"); exportButton.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { DSRequest dsRequestProperties = new DSRequest(); dsRequestProperties.setExportAs(ExportFormat.CSV); dsRequestProperties.setExportFilename(exportFileName.toString()); dsRequestProperties.setExportDisplay(ExportDisplay.DOWNLOAD); cubeGrid.exportClientData(dsRequestProperties); } });
The other option is to limit the amount of data (rows and columns) being exported!
For limiting the data, we tried using
Code:
dsRequestProperties.setEndRow(50000);
How do I go about limiting the data to be exported when the user tries to export a large data set?
Comment