Table actions not firing
I have a table function in a custom Filament page:
I have initialized the page like this:
Table:
Then, the blade view is looking like this:
When I try to trigger the
view_incentive_details
, I would for now, expect that it would just dd
the $record
, however, when I click it, a spinner is just shown briefly:
!image4 Replies
What is
>getIncentiveRequests()
returning? Do the record still have a ID? Might also be because of the groupBy statement 🤔It's returning this:
I tried to scrape the class of everything, and just return a table with a standard query (like:
OIPRequest::query()
), but to no avail 😦Does it have an
id
column? At least in the query above you didn’t select it.No, I am not selecting any
id
column, since the table is grouped:
However, I am setting a record key for the table:
After adding id
to the select
it works! Thank you Dennis!
However, shouldn't the getTableRecordKey
do the same as replacing the id
?