FilamentF
Filament16mo ago
Gandalf

Using filters in a custom page

I'm trying to build a custom page (sort of a report), which will use a date range filter, and then fetch the data from various resources to display as per the selected date range. Since it requires custom formatting, so using Table Builder or Info List is not suitable.

Now, while I'm able to show the filters form by adding FilterAction to getHeaderActions() and using HasFiltersAction trait, I'm unable to figure out which method should I use to fetch and update the data on page as per the selected date range.

Could someone please help on this?
Solution
Figured it out. Had to override getViewData()
Was this page helpful?