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
Have you tried
getTableQuery()
on the relation manager class?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.
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.
Wait this sounds exactly like what i need
i will check this and mark this as resolved once i have gotten it working
IT's also done in v3 differently if wanted you can see the filamentphp demo which has summing included
Okey great, I have done it!
Wouldn't have figured it out on my own!