F
Filament16mo ago
Medo

How to not show any table data unless the user selects from filters first

How to not show any table data unless the user selects from filters first
6 Replies
fikurimax
fikurimax16mo ago
I guess you can set the default value on the filter, but make sure the default value is not available on the filter itself
fikurimax
fikurimax16mo ago
like this
Medo
MedoOP16mo ago
@fikurimax Thanks for your reply, but options i don't want to set default values and want use select then show data on table based on filter applied
Medo
MedoOP16mo ago
@archilex Thank you , but do you think there's better way to do this ?
Kenneth Sese
Kenneth Sese16mo ago
Currently that seems to be the best way. You have to intercept the tableQuery on boot so it won’t load any models and that function is really the only place to do that. You might be able to try submit a PR to core to expose a more elegant API, but I don’t think the team will accept it. I’ve only seen it be asked 2-3 times, so it’s not a common use case, and since the solution in the thread exists, it’s probably the way to go.
Want results from more Discord servers?
Add your server