How to show tables data ONLY when there's a filter?
How to show tables data ONLY when there's a filter?
5 Replies
I think this can be done by customizing the
getTableQuery()
method on your List page. I'm curious, what's the reason behind this?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
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.
hm, that can work, let me see...
@Ricardo Sawir does it work..i have no idea please help