Select to view content in your preferred language

returnDistinctValues does not always work

5938
10
12-22-2014 01:04 PM
EdwardSohn2
Deactivated User

Using:

var queryTask = new QueryTask(layer.layerObject.url + "?returnDistinctValues=true");

But sometimes this works and sometimes it does not.

Are there any server settings for each layer (featurelayer) that needs to be specified precisely to make the returnDistinctValues=true work?

Using v. 3.10.

0 Kudos
10 Replies
EdwardSohn2
Deactivated User

Hi,

I am able to upgrade to 3.11/3.12, and it works, but for some of those urls does not work...

Worked for utility.arcgis.com/usrsvcs...

doesn't work for services2.arcgis.com urls...

API doc says ArcGIS Server 10.1 Service Pack 1 required.  Is it poss that services2.arcgis.com fails this requirement..? 

Just wondering...

0 Kudos