[SOLVED] "Contains any of" operator for Filter widget

725
2
07-08-2020 08:36 AM
Status: Open
TaraHaynes
Occasional Contributor

Currently in the Filter widget, the 'contains' operator only returns features where a given field contains all selected values.

 

I would like to see an operator that would return features where a given field contains any of the selected records.

 

For example, with a field containing a list of values:

 

ObjectID Land_Use

1agricultural, industrial
2residential, agricultural
3educational
4recreational, industrial, residential

 

Land_Use contains any of agricultural, industrial

would return features 1, 2, and 4.

2 Comments
ShengdiZhang

Hi Tara,

You can use clause set to do this:

Please make sure you use "OR" for the use of contains any of.

Shengdi

TonghuiMing

Hello Tara,

Thanks for your feedback and we appreciate that you brought this up!

We are considering the function of predefined values for the next releases. Once it is implemented, you can use the function of contains > Multiple (predefined) to achieve your goal here. Before that, you can use Shengdi's comment as a workaround.

Best,

Tonghui