How to limit PDF/CSV export to max 100 records?
How to limit PDF/CSV export to max 100 records?

Hi,
I have a fully functional DataTables setup running, with PDF and CSV export working.
Now, what I can´t seem to work out is a way to set a global limit to the export.
I want to set a limit of 100 records for all exports, meaning that even though there are 1000 results sorted the user must only be able to export a max total of 100 record (the first 100 out of the 1000 total records)
How do I do this?
This discussion has been closed.
Answers
Here is a snippet of my current JS setup: