Frequently asked question
query.where = "ID LIKE ' '%123%'"The query searches for IDs containing the value, 123. The code snippet below demonstrates how the WHERE clause is used to produce a similar result, for specific data according to the desired classification:
var input = dom.byId("ID").value var inputID = input.toUpperCase(); query.where = "ID = '123'"
Note: It is crucial to set the query object's WHERE clause correctly and use the '=' operator in the query statement to perform an exact match.
Get help from ArcGIS experts
Download the Esri Support App