<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: maxRecordCount property of ArcGISDynamicMapServiceLayer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/maxrecordcount-property-of/m-p/506598#M47131</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rickey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes we already know about this, and this is the 1000 limit I mentioned. However we have &lt;STRONG&gt;a lot&lt;/STRONG&gt; of services and we'd like to avoid manually changing this server side for each client. For us it would be more convenient to have a simple maxRecordCount parameter for each of our client and pass it client side in the layer configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did see in the documentation that the maxRecordCount is not really an option you can pass when creating the layer. But I tried setting it after and got the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.dynamicMapServiceLayer = new ArcGISDynamicMapServiceLayer(parameters.url, {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; opacity: parameters.opacity&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.dynamicMapServiceLayer.maxRecordCount = parameters.maxRecordCount;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 May 2015 19:24:00 GMT</pubDate>
    <dc:creator>YohanBienvenue</dc:creator>
    <dc:date>2015-05-13T19:24:00Z</dc:date>
    <item>
      <title>maxRecordCount property of ArcGISDynamicMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/maxrecordcount-property-of/m-p/506596#M47129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;esri/layers/ArcGISDynamicMapServiceLayer has a &lt;STRONG&gt;maxRecordCount&lt;/STRONG&gt; property like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntaxdetailname" style="margin: 0 0 0 -0.4em; border-bottom-color: #dddddd; border-bottom-style: solid; border-bottom-width: 1px; padding: 0.2em 0.5em; background: linear-gradient(#c7c7c7, #e1e1e1, #fafafa);"&gt;&lt;/P&gt;&lt;H4 class="syntaxdetailheadername" style="margin-top: 0.2em; margin-bottom: 0.4em; font-family: 'Avenir LT W01 65 Medium', Arial, Helvetica, sans-serif; font-weight: 500; font-size: 1.0625em;"&gt;&amp;lt;&lt;CODE style="font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 0.9375em; background: transparent;"&gt;&lt;A href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number" style="color: #00629b;"&gt;Number&lt;/A&gt;&lt;/CODE&gt;&amp;gt; maxRecordCount&lt;/H4&gt;&lt;P&gt;The maximum number of results that can be returned from query, identify and find operations. &lt;EM&gt;Requires ArcGIS Server version 10.1 or greater.&lt;/EM&gt; &lt;EM&gt;(Added at v2.6)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I expected this property to override the maxRecordCount set in the map service (which is 1000 by default).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that right now I set this &lt;STRONG&gt;maxRecordCount&lt;/STRONG&gt; property to 100 but when I make a spatial query on the layer 1000 results are returned anyway.&lt;/P&gt;&lt;P&gt;Also when inspecting the request of the query I don't see this limit of 100 anywhere in the query parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using ArcGIS Server 10.1 and version 3.13 of the JavaScript API&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did I misunderstand or doing something wrong?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #545454; font-family: 'Segoe UI', Tahoma, sans-serif; font-size: 12px;"&gt;Code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.dynamicMapServiceLayer = new ArcGISDynamicMapServiceLayer(parameters.url, {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; opacity: parameters.opacity,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; maxRecordCount: parameters.maxRecordCount&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL class="outline-disclosure" style="padding-left: 4px; list-style-type: none; font-family: 'Segoe UI', Tahoma, sans-serif; font-size: 12px;"&gt;&lt;LI&gt;&lt;SPAN style="color: #545454;"&gt;&lt;STRONG&gt;GET request parameters of Query:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;/LI&gt;&lt;LI style="color: #222222;"&gt;Query String Parameters&lt;SPAN class="header-toggle" style="margin-left: 30px; font-weight: normal; color: #737373;"&gt;view source&lt;/SPAN&gt;&lt;SPAN class="header-toggle" style="margin-left: 30px; font-weight: normal; color: #737373;"&gt;view URL encoded&lt;/SPAN&gt;&lt;OL class="children expanded" style="color: #222222; list-style-type: none; padding-left: 12px;"&gt;&lt;LI&gt;&lt;SPAN class="header-name" style="color: #545454; margin-right: 0.5em; font-weight: bold;"&gt;f:&lt;/SPAN&gt;&lt;SPAN class="header-value source-code" style="font-family: Consolas, 'Lucida Console', monospace; margin-right: 1em; margin-top: 1px;"&gt;json&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="header-name" style="color: #545454; margin-right: 0.5em; font-weight: bold;"&gt;where:&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="header-name" style="color: #545454; margin-right: 0.5em; font-weight: bold;"&gt;returnGeometry:&lt;/SPAN&gt;&lt;SPAN class="header-value source-code" style="font-family: Consolas, 'Lucida Console', monospace; margin-right: 1em; margin-top: 1px;"&gt;true&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="header-name" style="color: #545454; margin-right: 0.5em; font-weight: bold;"&gt;spatialRel:&lt;/SPAN&gt;&lt;SPAN class="header-value source-code" style="font-family: Consolas, 'Lucida Console', monospace; margin-right: 1em; margin-top: 1px;"&gt;esriSpatialRelIntersects&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="header-name" style="color: #545454; margin-right: 0.5em; font-weight: bold;"&gt;geometry:&lt;/SPAN&gt;&lt;SPAN class="header-value source-code" style="font-family: Consolas, 'Lucida Console', monospace; margin-right: 1em; margin-top: 1px;"&gt;{"rings":[[[271363.347754655,5137593.251916758],[287039.4222343921,5137593.251916758],[287039.4222343921,5126301.73822563],[271363.347754655,5126301.73822563],[271363.347754655,5137593.251916758]]],"spatialReference":{"wkid":32187}}&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="header-name" style="color: #545454; margin-right: 0.5em; font-weight: bold;"&gt;geometryType:&lt;/SPAN&gt;&lt;SPAN class="header-value source-code" style="font-family: Consolas, 'Lucida Console', monospace; margin-right: 1em; margin-top: 1px;"&gt;esriGeometryPolygon&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="header-name" style="color: #545454; margin-right: 0.5em; font-weight: bold;"&gt;inSR:&lt;/SPAN&gt;&lt;SPAN class="header-value source-code" style="font-family: Consolas, 'Lucida Console', monospace; margin-right: 1em; margin-top: 1px;"&gt;32187&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="header-name" style="color: #545454; margin-right: 0.5em; font-weight: bold;"&gt;outFields:&lt;/SPAN&gt;&lt;SPAN class="header-value source-code" style="font-family: Consolas, 'Lucida Console', monospace; margin-right: 1em; margin-top: 1px;"&gt;Matricule&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="header-name" style="color: #545454; margin-right: 0.5em; font-weight: bold;"&gt;outSR:&lt;/SPAN&gt;&lt;SPAN class="header-value source-code" style="font-family: Consolas, 'Lucida Console', monospace; margin-right: 1em; margin-top: 1px;"&gt;32187&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 18:52:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/maxrecordcount-property-of/m-p/506596#M47129</guid>
      <dc:creator>YohanBienvenue</dc:creator>
      <dc:date>2015-05-13T18:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: maxRecordCount property of ArcGISDynamicMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/maxrecordcount-property-of/m-p/506597#M47130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yohan,&lt;/P&gt;&lt;P&gt;One option would be to change the service.&lt;/P&gt;&lt;P&gt;You can change 1000 to 100 here:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="488" src="https://community.esri.com/legacyfs/online/99599_pastedImage_0.png" style="max-width: 1200px; max-height: 900px; width: 559px; height: 487.5px;" width="559" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 19:07:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/maxrecordcount-property-of/m-p/506597#M47130</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2015-05-13T19:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: maxRecordCount property of ArcGISDynamicMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/maxrecordcount-property-of/m-p/506598#M47131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rickey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes we already know about this, and this is the 1000 limit I mentioned. However we have &lt;STRONG&gt;a lot&lt;/STRONG&gt; of services and we'd like to avoid manually changing this server side for each client. For us it would be more convenient to have a simple maxRecordCount parameter for each of our client and pass it client side in the layer configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did see in the documentation that the maxRecordCount is not really an option you can pass when creating the layer. But I tried setting it after and got the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.dynamicMapServiceLayer = new ArcGISDynamicMapServiceLayer(parameters.url, {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; opacity: parameters.opacity&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.dynamicMapServiceLayer.maxRecordCount = parameters.maxRecordCount;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 19:24:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/maxrecordcount-property-of/m-p/506598#M47131</guid>
      <dc:creator>YohanBienvenue</dc:creator>
      <dc:date>2015-05-13T19:24:00Z</dc:date>
    </item>
  </channel>
</rss>

