Access to Table records in Groups closure
I have the following table
Is there a way to access all the records on the table (after filters are applied)? Ideally, I'd like to access them in the
getDescriptionFromRecordUsing
Solution:Jump to solution
Ok I found a solution to this. You can do something like
Not sure if there are any downsides to this but is seems to work. Hope it helps....
4 Replies
Solution
Ok I found a solution to this. You can do something like
Not sure if there are any downsides to this but is seems to work. Hope it helps.
You will likely want getFilteredTableRecords or similar when using filtering?
@toeknee I tried it and I'm getting
Method Filament\Tables\Table::getFilteredTableRecords does not exist.
getRecords
seems to give me the correct results though 🤔Sorry you are right, I was recalling the query method opposed to the records method