F
Filament6mo ago
jack5m

How to show Sum Data in Table Widget? Request for help

Hi filament community I have trouble in show Sum data in table widget. My expectation is when i choose option '123' in location options, i need to show sum data into table. I try to dd($query->get()) in this case and show right result. But when show in table, it not shown as right result. My code in below image
7 Replies
jack5m
jack5m6mo ago
No description
jack5m
jack5m6mo ago
i also try select in getTableQuery() function, but got error
No description
No description
jack5m
jack5m6mo ago
toeknee
toeknee6mo ago
that is because you are not reutrning a type of string, you are returning null. It will be down to a column.
jack5m
jack5m6mo ago
do you have any suggest for me to solve this case?
jack5m
jack5m6mo ago
result when i dd query to Raw SQL is different from query run on laravel debugbar
No description
No description
toeknee
toeknee6mo ago
You need to debug the data returned etc, it looks far too complicated