ExportBulkAction
Hello.
I have a modal named Cdr, it has 90 records, I had a Table Widget that shows all those records, I added the ExportBulkAction in order to select or filter records and export them to Excel:
If I select all of the 90 rows, the export action will only pick 21, If I pick 1 or 2 it may or may not ignore (see exports image).
How can I export the selected rows the right way?
Solution:Jump to solution
Filament should use
uniqueid
then. Not sure what's the issue. But I'd guess it's not the Exporter but the BulkAction that cannot identify the records correctly14 Replies
Are the rows missing because you modify the query?!
I tried without it, it's the same result.
I just added the following to the panel provider:
Does that model have a custom key insteaf of "id"? Can you share the exporter code?
Yes, it doesn't have an id
How do you identify records then?
It's like an event log table, the closest thing to an ID is uniqueid:
Solution
Filament should use
uniqueid
then. Not sure what's the issue. But I'd guess it's not the Exporter but the BulkAction that cannot identify the records correctlyNo, it was me, I forgot to set keyType
So it's working now?
Yes, one last question, when exporting is done it triggers a silent notification, how can I make it pop out?
I don't think you can. It's a database notification. They don't popup
Can I trigger a download by using ->after()
After on the Action? That runs after the action, not after the export
The export runs on the queue.
Oh, It makes sense. Thanks for the help