Replies: 1 comment
-
Hi Ivo, When somebody suggest it, i usually also implement it, also because this should be rather simple. But just as a suggestion how you could build this on your on: // event to check before uploaded to app
this.spreadsheetUpload.attachCheckBeforeRead(function (oEvent) {
// example
const sheetData = oEvent.getParameter("sheetData");
let errorArray = [];
// if sheetdata greater then 500 rows,throw error
if (sheetData.length > 500) {
const error = {
title: "Too many rows",
description: "Please upload less than 500 rows",
ui5type: "Error"
};
errorArray.push(error);
oEvent.getSource().addArrayToMessages(errorArray);
}
}, this); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi I started using spreadsheet importer and works great, thank you very much! Would be nice if there is property in configuration to set max. number of rows that can be in the file and if exceeded, can't progress further from the dialog. In my application I want to limit max. number of records to 500 in 1 file because of performance reasons.
Beta Was this translation helpful? Give feedback.
All reactions