Select to view content in your preferred language

find task multiple values from one search

2702
2
01-24-2014 06:10 AM
ShaneCarey
Deactivated User
Hey,

I am trying to replicate this example here:
https://developers.arcgis.com/javascript/jssamples/find_map_datagrid.html

for finding certain features within a layer. Is it possible to set this up that is finds all the values with "Katz" or "Allen" or etc etc?

Im a newbie to javascript.

Thanks
0 Kudos
2 Replies
RobertoPepato
Deactivated User
Yes, just use the QueryTask and Query classes instead of FindTask class:

https://developers.arcgis.com/javascript/jsapi/querytask-amd.html
https://developers.arcgis.com/javascript/jsapi/query-amd.html

Particularly, take a look of the where property of an Query instance.

https://developers.arcgis.com/javascript/jsapi/query-amd.html#where

Hope that helps.
0 Kudos
ShaneCarey
Deactivated User
Hey,

Thanks for your reply. Is there any example of where the example shows the results in a table like this example:
http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/demos/findtask/find_map_datag...

And then highlight those queries of interest.

Thanks
0 Kudos