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
Patrick Boivin16mo ago
Have you tried getTableQuery() on the relation manager class?
pieter_wessel
pieter_wesselOP16mo 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
toeknee16mo 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_wessel
pieter_wesselOP16mo 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
toeknee16mo ago
IT's also done in v3 differently if wanted you can see the filamentphp demo which has summing included
pieter_wessel
pieter_wesselOP16mo ago
Okey great, I have done it! Wouldn't have figured it out on my own!
Want results from more Discord servers?
Add your server