Building further on this example https://www-demos.smartclient.com/sm...GridComponents, I was wondering what is the approach if I want to add extra filters in the toolbar grid component? Eg. I want to add a "global" search field that searches in all fields and associated records (eg. search for an user by his address).
I've compared this example with the 12.1 version (change "13.0" in the URL to "12.1") and I notice that changing the header filters immediately leads to a new request in 13.0 and not in 12.1 (you need to press Enter first). I have compared the code and couldn't find a setting that triggers this change, so I assume it's in the code.
The reason I'm mentioning this difference is that I'm wondering were I need to "add" the extra "global search" field when I change a header filter. And vice versa: changing the global search field, press Submit in the toolbar would also need to include the current header filters. Is it a solution to use setCriteria() with the filter values and global search value as values and then call refreshData()?
Hope this question is clear and makes sense. I'm still trying to figure out the best way to refresh (filtered) data since there are (too many) options: filterData(), fetchData(), invalidateCache(), filterByEditor(), etc.
I've compared this example with the 12.1 version (change "13.0" in the URL to "12.1") and I notice that changing the header filters immediately leads to a new request in 13.0 and not in 12.1 (you need to press Enter first). I have compared the code and couldn't find a setting that triggers this change, so I assume it's in the code.
The reason I'm mentioning this difference is that I'm wondering were I need to "add" the extra "global search" field when I change a header filter. And vice versa: changing the global search field, press Submit in the toolbar would also need to include the current header filters. Is it a solution to use setCriteria() with the filter values and global search value as values and then call refreshData()?
Hope this question is clear and makes sense. I'm still trying to figure out the best way to refresh (filtered) data since there are (too many) options: filterData(), fetchData(), invalidateCache(), filterByEditor(), etc.
Comment