<?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: Get records from a service in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-records-from-a-service/m-p/763617#M70756</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Samuel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;On the service itself. An esriRequest does not return any classes it just returns json.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Sep 2016 18:06:35 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2016-09-13T18:06:35Z</dc:date>
    <item>
      <title>Get records from a service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-records-from-a-service/m-p/763614#M70753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are trying to develop a custom form application to edit the attribute tables in our Feature Access&amp;nbsp;service (it contains 1 feature class and 8 related tables with M-N relationships)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the example in esriRequest we were able to get both the "FeatureLayer" class and the 8 "Table" classes, my question is, how can I retrieve the records from these to display in a drop down list for example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code was used from this tutorial :&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jshelp/inside_esri_request.html" title="https://developers.arcgis.com/javascript/3/jshelp/inside_esri_request.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Retrieve data from a web server | Guide | ArcGIS API for JavaScript 3.17&lt;/A&gt;&amp;nbsp; using Json&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I changed the RequestSuceeded to get the data type&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="" style="color: #333333; font-weight: bold;"&gt;function&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt; requestSucceeded&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;data&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;
&amp;nbsp; alert(data.type) // prints "FeatureLayer" for feature class and "Table" for related tables&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;
&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Another question, is there a better way to retrieve classes from services other than creating a new esriRequest for each class?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:27:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-records-from-a-service/m-p/763614#M70753</guid>
      <dc:creator>SamuelAbati</dc:creator>
      <dc:date>2021-12-12T08:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Get records from a service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-records-from-a-service/m-p/763615#M70754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Samuel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You can use the QueryTask and Query classes to retrieve the data from your services.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 20:49:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-records-from-a-service/m-p/763615#M70754</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-09-12T20:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Get records from a service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-records-from-a-service/m-p/763616#M70755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks as always Robert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I perform the query on the service or on the classes&amp;nbsp;returned by the response?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 17:54:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-records-from-a-service/m-p/763616#M70755</guid>
      <dc:creator>SamuelAbati</dc:creator>
      <dc:date>2016-09-13T17:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Get records from a service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-records-from-a-service/m-p/763617#M70756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Samuel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;On the service itself. An esriRequest does not return any classes it just returns json.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 18:06:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-records-from-a-service/m-p/763617#M70756</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-09-13T18:06:35Z</dc:date>
    </item>
  </channel>
</rss>

