QueryTask to Return Distinct Values

3128
2
Jump to solution
10-11-2013 10:46 AM
Labels (1)
RyanCoodey
Occasional Contributor III
So the REST endpoint exposes a "Return Distinct Values" option... I am needing this in our WPF app (using 10.1.1) but do not see any options for this in the QueryTask or Query classes. Am I missing something? How might I achieve this functionality short of having to pull everything down and do it client side? I would say we could write a sub query into the where clause but the services don???t expose the feature class name. Hoping I'm just overlooking the option for this.

Thanks a lot for any help!
0 Kudos
1 Solution

Accepted Solutions
RyanCoodey
Occasional Contributor III
Found this similar post in the Silverlight forum: http://forums.arcgis.com/threads/76775-Distinct-Query. Guessing the WPF API will be implementing this feature soon too, hopefully in 10.2. For the time being citrusmosquito kindly gave some code that supports using this feature. Compiles just fine in WPF. Thanks!

View solution in original post

0 Kudos
2 Replies
RyanCoodey
Occasional Contributor III
Found this similar post in the Silverlight forum: http://forums.arcgis.com/threads/76775-Distinct-Query. Guessing the WPF API will be implementing this feature soon too, hopefully in 10.2. For the time being citrusmosquito kindly gave some code that supports using this feature. Compiles just fine in WPF. Thanks!
0 Kudos
MichaelBranscomb
Esri Frequent Contributor
Hi,

The forthcoming 10.2 release contains a number of enhancements to provide access to new capabilities and functionality in ArcGIS for Server 10.2 - including ReturnDistinctValues for queries.

Cheers

Mike
0 Kudos