var layerId = getlayerIdByName("primary_dataset","Active Road Crossings"); var queryTask = new esri.tasks.QueryTask(primaryMapUrl + "/"+layerId); var query = new esri.tasks.Query(); query.returnGeometry = false; query.outFields = ["OBJECTID","ENG_XING"]; query.where = "1=1" ; queryTask.executeForCount(query,function(count){ alert(count); },function(error){ console.log(error); }); queryTask.execute(query,populateDotXingNumbers);
Solved! Go to Solution.
Yes, this is set within the Parameters of the service. Ex:
[ATTACH=CONFIG]24194[/ATTACH]
See the following help link here.
Maximum number of records returned by the server: Clients, such as the ArcGIS web APIs, can perform query operations to return specific information, or records, from a map service. This property specifies how many records can be returned by the server to a client for any given query operation. Specifying a large number of records to be returned by the server can slow the performance of client applications consuming your map service, such as web browsers, and your GIS server.
Hi Jake,
When I go change the number to 2000 or higher, while publishing the map service, I am getting this error, do you know how I can fix this?
I asked a question this morning in the forum, because I am not getting an accurate result when the selected features are more than 1000 within the buffer distance, here :
Re: Selected features within a buffer not getting accurate results
Thanks for your help!
That screen shot is from when you are publishing a map service at 10.1.