QueryTask does not support advanced REST query functionality

918
2
Jump to solution
04-03-2013 09:37 AM
OttarViken_Valvåg
New Contributor III
There are some nifty options in the REST query API that don't seem to be supported in the JavaScript API. I'm thinking of the returnCountOnly, returnDistinctValues and returnIdsOnly options, for example.

http://resources.arcgis.com/en/help/rest/apiref/index.html?query.html
http://developers.arcgis.com/en/javascript/jsapi/query.html

Am I missing something, or are these option not present in the JavaScript API? Will they be added?
0 Kudos
1 Solution

Accepted Solutions
StephenLead
Regular Contributor III
I'm thinking of the returnCountOnly, returnDistinctValues and returnIdsOnly options, for example.


I'm not positive this answers your question, but I think that returnCountOnly is available as executeForCount while returnIdsOnly is available as executeForIds


View solution in original post

0 Kudos
2 Replies
StephenLead
Regular Contributor III
I'm thinking of the returnCountOnly, returnDistinctValues and returnIdsOnly options, for example.


I'm not positive this answers your question, but I think that returnCountOnly is available as executeForCount while returnIdsOnly is available as executeForIds


0 Kudos
OttarViken_Valvåg
New Contributor III
Aha, that is what I was looking for. Thanks a lot!
0 Kudos