Editor field filtering with coded values

384
1
11-15-2022 02:48 AM
JB19
by
New Contributor III

Hi everyone.

I have a problem with the Editor Widget on Arcgis JS Api 4.24 (and 4.25) .
Using the editor, I try to filter a field that has coded values on it.

The problem I'm having is that I can't filter the values of the field.
The field seems to be filtered only on the keys of the coded values, not the labels.

In the example proposed in the documentation (https://developers.arcgis.com/javascript/latest/sample-code/widgets-editor-basic/), the features of the layer have fields with coded values whose key and value are identical.

JB19_0-1668508117736.png

So when I filter the field, it works as expected:

JB19_3-1668508801679.png

 

For my part, this is not the case. My coded values keys are integers and different from their string values :

JB19_1-1668508273173.png

Because of this, I can filter the field by the coded values keys but not the label (the input doesn't let me type letters).

JB19_2-1668508399440.png

Is there a way for me to filter the values on the labels ?

Thanks.

0 Kudos
1 Reply
JB19
by
New Contributor III

It seems that I misunderstood the reason of the issue.

JB19_0-1679560782908.png

These two fields are quite similar, but one of them is `esriFieldTypeSmallInteger`.
Because of that, the search input of the field's combobox is not accepting letters.
It means that the user cannot search a value in the comcobox by its name, which is quite strange.

0 Kudos