conterra / mapapps-query-builder

The Query Builder Bundle allows you to create your own Query Tools, that perform custom queries to a store.
https://demos.conterra.de/mapapps/resources/apps/downloads_query_builder/index.html
Apache License 2.0
7 stars 6 forks source link

support selecting multiple values ("is in") #35

Closed gtschorn closed 3 years ago

gtschorn commented 3 years ago

This change provides a new relational operator "is in". If this is selected the field´s select or combobox control´s flag multiple is activated to allow for selecting multiple values. On query-side then the operator "$in" is used.

matthiasstein commented 3 years ago

Thank you for your pull request. It works fine for Strings 👍 In case of number values the getComplexQuery method always parses the array value to a string which leads to vue errors. Can you fix this? https://github.com/conterra/mapapps-query-builder/blob/f9da4a951ef061f3e7f1dfb6e78d18d17188f3ae/src/main/js/bundles/dn_querybuilder/QueryBuilderWidgetModel.js#L390-L392

gtschorn commented 3 years ago

Now the case when type is number and value is array is respected.