-
-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MapFilter Plugin: Build filter string with field inputs only while using predifined filters #570
Comments
Not sure if related to the freeze you see, but I could find out one error which I fixed in [1]. Regarding the handling of undefined values: this is not trivial, say
Cutting of a portion of the expression due to an undefined |
I do not understand correctly, why the subexpression has to be replaced with So here some examples:
case 1,
case 2,
case 3,
case 4,
Would this work? |
What you implicitly did here is replacing the triplet with an undefined value with |
I am trying to configure a set of predefined filters for the map filter plugin. Here the filtering is not possible, if the filter expressions are chained with "and|or", no default value is set and the user input isn't given yet.
For instance, if I have this configuration:
this results in this filter:
But as far as turning the filter switcher it results in an error, as the filter parameter within the map request is as follows:
It works only, if all of the fields are filled in before turning the switch. So if a value is deleted to enter a new one, the filter crashes aswell.
So my suggestion is, that the filter of the respective input field is only active, if the user has filled somethin in.
So for instance:
results in
and
results in
or
results in
and the empty filters are skipped as nothing is filled in.
In addition showing the error/warning that the filter is not correct result in a frozen app, I have to reload the site after this completely.
The text was updated successfully, but these errors were encountered: