Page 1 of 1

FilterEditor manual filtering

PostPosted: Tue Dec 18, 2018 4:38 pm
by johnit
The FilterEditor automatically sets a filter on value change!

Is it possible to stop automatic filtering and do some extra tasks after value changed, e.g. set additional filters or show an information message?

Re: FilterEditor manual filtering

PostPosted: Tue Dec 18, 2018 5:05 pm
by Support@SIB
Yes, this is not a problem. Simply disable automatic search, e.g:

Code: Select all
filterEditor.setAutoSearch(false);

This prevents the specific filter editor from filtering, after value changes. But be careful, if you have multiple editors with different auto-search setting, a FilterEditor with auto-search will include the non auto-search editor.

The value changed event of the FilterEditor will be fired in any case. This event can be used to implement custom features like showing an information.

If you want to apply the filter manually, simple call

Code: Select all
FilterEditor.applyFilter(databook);

or

Code: Select all
filterEditor.applyFilter();