refresh after filter

this is my filter, when i select filter its need refresh to load filtered data, so i want to when i choose filter automaticly refresh it, how i can do it ?
14 Replies
gigiloouu
gigiloouuOP4w ago
anyone?
biebthesecond
biebthesecond4w ago
Refresh the page? You could return a reload response to the browser after state of the select has ben changed
lazydog
lazydog4w ago
when your filter is changed, the list from your table will be changed too. No need to refresh
gigiloouu
gigiloouuOP4w ago
yes but, in this filter which code i showed u, when i choose and click its not change data its need refresh and next showing filtered data\ okay but where can u exaplane more please? ??
biebthesecond
biebthesecond4w ago
What data are you filtering? We’re talking about filament tables right?
gigiloouu
gigiloouuOP4w ago
yes in table i have total column
gigiloouu
gigiloouuOP4w ago
gigiloouu
gigiloouuOP4w ago
like this and i have filter which should change this total like if select office rent amount it should shows only rent amount sum code is there this filter
Dennis Koch
Dennis Koch4w ago
Your filter isn't doing anything. Why did you add this?
->query(function () {
return true;
})
->query(function () {
return true;
})
gigiloouu
gigiloouuOP4w ago
without that i just had errors lol i should return filtered data in there?
Dennis Koch
Dennis Koch4w ago
No. It's the part that is applied to the query by the filter If you use SelectFilter you shouldn't need to use this Best if you'd share what you want to do. Seems like SelectFilter isn't the right tool
gigiloouu
gigiloouuOP3w ago
so what i should use ? just Filter?
gigiloouu
gigiloouuOP3w ago
i have column in my table like this ``````
gigiloouu
gigiloouuOP3w ago
i want to make filter for this column, this column shows now all inputs sum (total) i want to make filter where values will be this inputs and let's say if i choose office_rent_amount it should only shows office_rent_amount sum in this column at this moment it shows all inputs sum

Did you find this page helpful?