post by Pedro on Jan 5, 2024
post by johnny on Jan 6, 2024
Hello @Pedro ,
Yes, this is a limitation that we have hardcoded since we saw that after 1000 records the memory usage of the PHP application is getting full. In order to change that you can use the replaceState | Grocery CRUD - A PHP CRUD Generator Library function and replace the functionality you don’t like. For example in your case you can create a custom export state that will look like this:
<?php
use GroceryCrud\Core\State\ExportState;
use GroceryCrud\Core\State\StateInterface;
class CustomExportState extends ExportState implements StateInterface {
public function getPerPage($data = []) {
return 20000;
}
}
And you can add it like this:
$exportState = new CustomExportState($crud);
$crud->replaceState('Export', $exportState);
Let me know if that worked for you.
Regards
Johnny
post by johnny on Jan 6, 2024
If you see that you have problems with 20000 I have a full example at the replaceState documentation which you can export those files with another library.
post by Pedro on Jan 6, 2024
Thank you very much for your response, I will make the changes and let you know.
New & Unread Topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Setting quick search values via JavaScript not working properly for booleans |
|
0 | 563 | Nov 2025 |
| callbackColumn() has not effect in v3.2.6 Enterprise |
|
2 | 696 | Dec 2025 |
| displayAs() doesn’t support new line in headings |
|
4 | 871 | Jan 5 |
| PRINT date format not consistent |
|
6 | 354 | Sep 7 |
| “Ooooops, something went wrong! If you can see this message, this is probably a misconfiguration in Grocery CRUD Enterprise!” |
|
6 | 264 | 8d |
