Ordering records in relation manager and adding custom row

How do i override the relation manager query. In the end i want to add an extra row manually to the relationmanager that adds a total to an orderItem table. How do i do this?
6 Replies
Patrick Boivin
Have you tried getTableQuery() on the relation manager class?
Pieter
PieterOP2y ago
Yes that works to order but i cant add a row through that query. The only other option there is is to make a custom component i think.
toeknee
toeknee2y ago
Filament
Aggregate data in table footer (sum, avg...etc) by moaaz faracheh -...
Filament is a collection of tools for rapidly building beautiful TALL stack apps, designed for humans.
Pieter
PieterOP2y ago
Wait this sounds exactly like what i need i will check this and mark this as resolved once i have gotten it working
toeknee
toeknee2y ago
IT's also done in v3 differently if wanted you can see the filamentphp demo which has summing included
Pieter
PieterOP2y ago
Okey great, I have done it! Wouldn't have figured it out on my own!

Did you find this page helpful?