How to show tables data ONLY when there's a filter?

How to show tables data ONLY when there's a filter?
5 Replies
Patrick Boivin
I think this can be done by customizing the getTableQuery() method on your List page. I'm curious, what's the reason behind this?
Ricardo Sawir
Ricardo SawirOP2y ago
I have a page where users need to fill out some fields before the lists can be shown Thinking to use table's filters for this
toeknee
toeknee2y ago
So you need to use the getTableQuery() and simply apply say where('id', '=', 0) to ensure nothing is shown. Then condition that where query based on if the filters are set.
Ricardo Sawir
Ricardo SawirOP2y ago
hm, that can work, let me see...
SinthuMS
SinthuMS12mo ago
@Ricardo Sawir does it work..i have no idea please help

Did you find this page helpful?