Best pratices for reporting page
HI,
I would like to create a reporting page (tables, graphs etc) for my application.
Reading the documentation I saw that I can use widgets.
What is the best practice for creating a custom or resource page that uses both tables and widgets (StatsOverviewWidget or ChartWidget) sharing the same filters?
Thanks always
Solution:Jump to solution
Thank you very much,
as I imagined the problem was in the passage of the filters in the view.
Your code gave me the solution
...
22 Replies
You can just create widgets and render them into a custom page? It depends if the widgets etc should all be dependant on the tablet, then a resource with graphs would be better. If you scope it better we can advise further.
Simply,
one page with:
one table with filters
one chart widget that depend from table filters
one stats widget that depend from table fiters
How do I retrieve the table filters in the widget?
So build a standard page with a fitlerForm and inject those values into the queryies of each widget 🙂
I create TableWidget and pass filtersForm but filter not read...can help me?
filters are working ok
dd($this->filters); ?
GitHub
How can I implement filtering for multiple widgets on a page? · fil...
I am trying to create a filter for multiple widgets. When the button is submitted, the HorizontalAlignmentColumnChart is hidden, and the filter popup on the chart cannot be clicked. There are some ...
null
Did you set the page Fitlers?
the problem is much simpler..one filter for one widget
Custom page with FilterForm
Relative view
Simple Widget
$this->filters is Widget is always null
suggest?
That's exactly what I'm looking at.
the only difference is that the documentation uses BaseDashboard instead of Page
So the that you get a full on DD means the field is defined.
Make sure the filters are set to 'Live
the filter is correctly on live
print_r($this->filters) in view blade print the correct value of filter
but when pass to widget it return null
what version of filament are you on?
latest
trying to update
php artisan about
3.2.121
I am struggling to see why they would be empty, we inject them for a reason by using the trait :/
that's right, the only difference is that I use a page instead of a dashboard
i try to use dashboard instead of page...and NOT WORKING 😦
Ok find the problem...the problem...is the view blade
if i use dashboard without blade view its work...but it isnt my solution 😦
Sooo that's easy then
use a copy of the original blade view 😉
Solution
Thank you very much,
as I imagined the problem was in the passage of the filters in the view.
Your code gave me the solution
this is my custom view