Select to view content in your preferred language

how to query string type field whose values are int

320
1
09-13-2022 05:34 AM
Labels (1)
MichaelLev
Regular Contributor

I work with ArcGIS API 4.23

From my WAB web app, I need to query e.g. for greater or equal, where the field type is string, but all values are actually integers. I tried:

queryString = `CAST (${field.name} AS INT) >= ${value}`

but got an error - "Syntax error [INT]"

What is my mistake?

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

If the field type is string then you can not do numeric evaluations like greater than...

0 Kudos