<?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 Is resultRecordCount and resultOffset supported in FeatureLayer version of queryFeatures()? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-resultrecordcount-and-resultoffset-supported-in/m-p/1554879#M86020</link>
    <description>&lt;P&gt;I'm wondering if&amp;nbsp;resultRecordCount and resultOffset are supported parameters for the FeatureLayer class version of the queryFeatures() method?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Initial FeatureLayer definition
myLayer = new FeatureLayer({
   portalItem: { id: "abcitseasyas123abcjustyouandme" },
   outFields: ["*"],
   renderer: polyColorDemoRenderer,
});

var query = {
   where: "1=1", 
   returnGeometry: true,
   returnCentroid: true,
   outFields: ["*"],
   resultRecordCount: 500,
   resultOffset: 1000,
   orderByFields: ["OBJECTID DESC"]
};

myLayer.queryFeatures(query).then(function(results) {
    console.log("results.features.length="+results.features.length);
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the Javascript above, it seems to always return the maximum number of results (2000) and ignore the resultOffset, so I'm calling they incorrectly or they aren't implemented for the FeatureLayer class' version of queryFeatures()?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Nov 2024 22:37:03 GMT</pubDate>
    <dc:creator>DavidMenninger</dc:creator>
    <dc:date>2024-11-01T22:37:03Z</dc:date>
    <item>
      <title>Is resultRecordCount and resultOffset supported in FeatureLayer version of queryFeatures()?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-resultrecordcount-and-resultoffset-supported-in/m-p/1554879#M86020</link>
      <description>&lt;P&gt;I'm wondering if&amp;nbsp;resultRecordCount and resultOffset are supported parameters for the FeatureLayer class version of the queryFeatures() method?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Initial FeatureLayer definition
myLayer = new FeatureLayer({
   portalItem: { id: "abcitseasyas123abcjustyouandme" },
   outFields: ["*"],
   renderer: polyColorDemoRenderer,
});

var query = {
   where: "1=1", 
   returnGeometry: true,
   returnCentroid: true,
   outFields: ["*"],
   resultRecordCount: 500,
   resultOffset: 1000,
   orderByFields: ["OBJECTID DESC"]
};

myLayer.queryFeatures(query).then(function(results) {
    console.log("results.features.length="+results.features.length);
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the Javascript above, it seems to always return the maximum number of results (2000) and ignore the resultOffset, so I'm calling they incorrectly or they aren't implemented for the FeatureLayer class' version of queryFeatures()?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 22:37:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-resultrecordcount-and-resultoffset-supported-in/m-p/1554879#M86020</guid>
      <dc:creator>DavidMenninger</dc:creator>
      <dc:date>2024-11-01T22:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is resultRecordCount and resultOffset supported in FeatureLayer version of queryFeatures()?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-resultrecordcount-and-resultoffset-supported-in/m-p/1554890#M86021</link>
      <description>&lt;P&gt;The &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html" target="_self"&gt;Query&lt;/A&gt; object doesn't have resultRecordCount and resultOffset properties, so those would be ignored.&amp;nbsp; Instead, you should use &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#num" target="_self"&gt;num&lt;/A&gt; and &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#start" target="_self"&gt;start&lt;/A&gt;, respectively.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 23:03:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-resultrecordcount-and-resultoffset-supported-in/m-p/1554890#M86021</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2024-11-01T23:03:10Z</dc:date>
    </item>
  </channel>
</rss>

