Limit the number of rows of a csv file to be imported
In a Section, I am using the pxRecordsEditor Section to import a CSV file into a table, which is working as expected:
However, I would like to limit the number of rows of this CSV file to be imported. I have a requirement from Business which is that the maximum number of rows allowed in the CSV file should be 1000 and if the file contains more than 1000 records, it should stop the import process to be continued.
The validation should be like "If number of rows <= 1000, continue import process. Else, stop process."
How can I manage to create this validation?
Thank you.