'Export data from UI5 to Excel - getting a warning pop-up
On trying to export, I am currently getting a warning dialog from SAP as follows, especially when there are 0 records fetched, not when at least 1 record is fetched:
"There is no count provided in the export configuration.
The total number of exported rows cannot be predicted and might exceed the memory capacity of the application.
Please do not proceed unless you are sure that the current filter settings will not result in a large amount of data."
I tried to add count attribute in the config settings but it does not change anything. Is it possible to set up count attribute when using client side model. Eg code
enter code here
fExp: function(actualData, oColumns) {
oSettings = {
workbook: {
columns: this.createColumnConfig(oColumns)
},
dataSource: actualData,
fileName: "A",
showProgress: false,
count : 10 // does not work
};
var oSpreadsheet = new sap.ui.export.Spreadsheet(oSettings);
oSpreadsheet.build().then(function () {
sap.m.MessageToast.show("Spreadsheet export has finished");
});
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
