Select to view content in your preferred language

How to get total count of a query

773
1
Jump to solution
02-11-2013 01:07 PM
PhilipKnight1
Regular Contributor
I would like to display to the user the number of features/graphics that are displayed out of how many would be displayed if all of the graphics were returned.

Currently my service is set to max out at returning 1000 graphics, but our DB holds ~85,0000. When a user submits a query that has 3235 results, I'd like to be able to display "Only showing 1000 of 3235" results or similar.
0 Kudos
1 Solution

Accepted Solutions
PhilipKnight1
Regular Contributor
After doing some more research today was able to find this method and documentation in QueryTask:

ExecuteCountAsync

Executes a query against an ArcGIS Server map layer and counts the results. If the query is successful, the QueryTask.ExecuteCountCompleted event is raised with the result.

View solution in original post

0 Kudos
1 Reply
PhilipKnight1
Regular Contributor
After doing some more research today was able to find this method and documentation in QueryTask:

ExecuteCountAsync

Executes a query against an ArcGIS Server map layer and counts the results. If the query is successful, the QueryTask.ExecuteCountCompleted event is raised with the result.
0 Kudos