cuba.gui.genericFilterChecking enable/disable by filter?

Hi:

On v7.1, I found the cuba.gui.genercFilterChecking property https://doc.cuba-platform.com/manual-7.1/app_properties_reference.html#cuba.gui.genericFilterChecking. This insures that at least one criteria is filled in before a filter can run. Very useful for large tables and to keep users from doing massive searches by mistake.

I would like to turn this on for specific filters/screens, but NOT have it on as default for all filters. Is this possible?

Alternatively (or in addition), how about a way to interrupt a long database query entered by mistake?

Hi,

WebFilter class contains the getDelegate(). Its Javadoc describes a way to collect filter values and check them.

    /**
     * Returns a {@link FilterDelegate} instance. FilterDelegate provides an access to filter internals not available from the high-level filter API.
     * For example, you may get a list of filter parameter and its values. That may be useful if you want to check that all parameters are filled
     * before the filter is applied:
     *
     * <pre>{@code
     *    filter.setBeforeFilterAppliedHandler(() -> {
     *    FilterDelegate delegate = ((WebFilter) filter).getDelegate();
     *        List<AbstractCondition> conditions = delegate.getConditionsTree().toConditionsList();
     *        for (AbstractCondition condition : conditions) {
     *            if (condition.getParam().getValue() == null) {
     *                notifications.create(Notifications.NotificationType.WARNING)
     *                        .withCaption("All parameters must be filled")
     *                        .show();
     *                return false;
     *            }
     *        }
     *        return true;
     *    });
     * }</pre>
     * <p>
     * WARNING: The API of the FilterDelegate is unstable and may be changed.
     */
    public FilterDelegate getDelegate() {
        return delegate;
    }

Perfect! Thank you so much.