[Bug] #380
-
How to print data from a list page after filtering it. The problem is that the query returns the same without filtering. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi Muhammed. I'm afraid I don't understand what you're trying to do and cannot achieve it. Can you please expand and/or provide screenshots? Cheers! |
Beta Was this translation helpful? Give feedback.
-
@phpMuhammed, do you want to be able to print a full CRUD list (possibly filtered), or is it enough to have a "Print Today Appointments" button that prints today's appointments no matter what is show inside the CRUD list at the moment? If the second option is enough, there is no need to do it through Backpack's list operation logic and you can just write your own select query that gets all the appointments for today and then print them. The button would just call your own function. |
Beta Was this translation helpful? Give feedback.
@phpMuhammed have a look at the ListOperation search code, where we apply the filters/search to the query:
https://github.com/Laravel-Backpack/CRUD/blob/98c72342e4c0b2ff0f56ec0376f9f819d77fd6f2/src/app/Http/Controllers/Operations/ListOperation.php#L70
Cheers