I want to create a Dropdown button that acts like a kind of a Quick Filter button. When you click on an item, it would add a chip automatically with a value to the filter set. This in contrast to a user manually adding their own filter chip via a list of available columns.
[attachment=1]quick-filter.png[/attachment]
[attachment=0]Screenshot 2022-04-29 180647.png[/attachment]
Is there a way of programmatically adding a filter chip?

Hi John,
you can programatically set a filter doing this (for example)
toolbarFilter.setFilterValue(fv_toolbarFilter.getFilter('status'), ['OPEN'], scopes.svyPopupFilter.OPERATOR.EQUALS)
where ‘toolbarFilter’ is the form variable on to which the filterobject is bound
I assumed ‘status’ would be the column name you want to filter on.
This should also be an existing filter option for the users, otherwise it won’t work.
Hope this helps
mboegem:
Hi John,
you can programatically set a filter doing this (for example)
toolbarFilter.setFilterValue(fv_toolbarFilter.getFilter('status'), ['OPEN'], scopes.svyPopupFilter.OPERATOR.EQUALS)
where ‘toolbarFilter’ is the form variable on to which the filterobject is bound
I assumed ‘status’ would be the column name you want to filter on.
This should also be an existing filter option for the users, otherwise it won’t work.
Hope this helps
Alrighty, I haven’t tried this out yet since I’m working on other stuff. But when I get the chance I’ll try this out.