Select to view content in your preferred language

How to use the "Show find task results in a DataGrid" with a Query task

1227
1
Jump to solution
06-09-2014 12:53 PM
MatthewBaker2
Deactivated User
All,

What is required to use this sample with a Query task instead of a Find task?

Show find task results in a DataGrid

My understanding of a Find task is that it can only query the primary display field through a 'text' query, rather than querying any field through a where clause.

Thanks!

-m
0 Kudos
1 Solution

Accepted Solutions
JohnGravois
Deactivated User
hey matt,

sounds like you're on track to me.  find is an operation of a map service which allows you to search more than one layer at a time (via SQL expressions only).  query is an operation of the feature layer itself and supports both SQL and spatial filters.

although it uses a JS API FeatureLayer instead of a QueryTask, it would still probably be helpful for you to check out this sample, because what we end up supplying to the dataGrid is ultimately the same.

View solution in original post

0 Kudos
1 Reply
JohnGravois
Deactivated User
hey matt,

sounds like you're on track to me.  find is an operation of a map service which allows you to search more than one layer at a time (via SQL expressions only).  query is an operation of the feature layer itself and supports both SQL and spatial filters.

although it uses a JS API FeatureLayer instead of a QueryTask, it would still probably be helpful for you to check out this sample, because what we end up supplying to the dataGrid is ultimately the same.
0 Kudos