<?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 ArcGIS API for javascript - how to get records count of zipped shapefile in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/arcgis-api-for-javascript-how-to-get-records-count/m-p/801381#M5210</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;ESRI example code in&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/layers-featurelayer-shapefile/index.html"&gt;Create a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;FeatureLayer from a shapefile&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;adds zipped shapefile into map.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;This code uses&lt;SPAN&gt; &lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/generate.htm"&gt;ArcGIS REST API Generate&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;to create the feature collection, but it&amp;nbsp;&lt;/SPAN&gt;is limited and can't create if total recors number is greater than 4000.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;So, I want to &lt;SPAN style="color: #4c4c4c;"&gt;analyze the zipped shapefile &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;prior&lt;/STRONG&gt;&lt;/SPAN&gt; to generating features using Generate operation, in order to&amp;nbsp;&lt;/SPAN&gt;know the number of records, either total, or better - per layer.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;My questions are:&lt;/P&gt;&lt;OL&gt;&lt;LI style="background-color: #ffffff; border: 0px;"&gt;How can I add in this code a query to only get&amp;nbsp;the&amp;nbsp;total number of records (in the input zipped shapefile (in order to know apriory if it is greater than 4000)?&lt;/LI&gt;&lt;LI style="background-color: #ffffff; border: 0px;"&gt;How&amp;nbsp;&lt;SPAN&gt;can I add in this code a query to get the total number of records&amp;nbsp;per layer (I know the layer names, but maybe I could get the number of records per layer also without knowing apriory the layer names)?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'll appreciate help,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Michael&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Aug 2020 12:52:22 GMT</pubDate>
    <dc:creator>MichaelLev</dc:creator>
    <dc:date>2020-08-26T12:52:22Z</dc:date>
    <item>
      <title>ArcGIS API for javascript - how to get records count of zipped shapefile</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/arcgis-api-for-javascript-how-to-get-records-count/m-p/801381#M5210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;ESRI example code in&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/layers-featurelayer-shapefile/index.html"&gt;Create a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;FeatureLayer from a shapefile&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;adds zipped shapefile into map.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;This code uses&lt;SPAN&gt; &lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/generate.htm"&gt;ArcGIS REST API Generate&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;to create the feature collection, but it&amp;nbsp;&lt;/SPAN&gt;is limited and can't create if total recors number is greater than 4000.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;So, I want to &lt;SPAN style="color: #4c4c4c;"&gt;analyze the zipped shapefile &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;prior&lt;/STRONG&gt;&lt;/SPAN&gt; to generating features using Generate operation, in order to&amp;nbsp;&lt;/SPAN&gt;know the number of records, either total, or better - per layer.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;My questions are:&lt;/P&gt;&lt;OL&gt;&lt;LI style="background-color: #ffffff; border: 0px;"&gt;How can I add in this code a query to only get&amp;nbsp;the&amp;nbsp;total number of records (in the input zipped shapefile (in order to know apriory if it is greater than 4000)?&lt;/LI&gt;&lt;LI style="background-color: #ffffff; border: 0px;"&gt;How&amp;nbsp;&lt;SPAN&gt;can I add in this code a query to get the total number of records&amp;nbsp;per layer (I know the layer names, but maybe I could get the number of records per layer also without knowing apriory the layer names)?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'll appreciate help,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Michael&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2020 12:52:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/arcgis-api-for-javascript-how-to-get-records-count/m-p/801381#M5210</guid>
      <dc:creator>MichaelLev</dc:creator>
      <dc:date>2020-08-26T12:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS API for javascript - how to get records count of zipped shapefile</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/arcgis-api-for-javascript-how-to-get-records-count/m-p/801382#M5211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume it's impossible, becaue zip file could be analysed only after esri had read it, and from WAB (Developer Edition) Web Application, if number of total records &amp;gt; 4000, esri can't read it, since esri had limited the "generate" service to limit of 4000 records.&lt;/P&gt;&lt;P&gt;Michael&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2020 06:42:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/arcgis-api-for-javascript-how-to-get-records-count/m-p/801382#M5211</guid>
      <dc:creator>MichaelLev</dc:creator>
      <dc:date>2020-09-10T06:42:17Z</dc:date>
    </item>
  </channel>
</rss>

