<?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: Chained Rest Api Calls in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/chained-rest-api-calls/m-p/739305#M68433</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Found it &lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/32931-How-to-use-dojo.Deferred-dojo.DeferredList-and-.then" rel="nofollow" target="_blank"&gt;http://forums.arcgis.com/threads/32931-How-to-use-dojo.Deferred-dojo.DeferredList-and-.then&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks guys&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Oct 2013 10:35:54 GMT</pubDate>
    <dc:creator>JorgeVinagre</dc:creator>
    <dc:date>2013-10-07T10:35:54Z</dc:date>
    <item>
      <title>Chained Rest Api Calls</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/chained-rest-api-calls/m-p/739304#M68432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&amp;nbsp; there&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to chain several&amp;nbsp; rest calls with the api to perform a complex search in a web app. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Supose i need this: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;.execute for count&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.execute for object ids&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.test the objecids in an asp.net mvc WebApi service&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.execute the actual map query&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I may have to do this from 1 to 5 five times depending on the criteria entered by the user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any way to coordinate all this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What i had in mind was:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;.execute for count(1 to five times)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;wait for all counts &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if there are less than 800 results&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;.execute for object ids(1 to five timea)...and so on&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I thinks this is made using deferred´s, and promises but i dont know how to use them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any directions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I´m using JS API 3.2. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2013 15:45:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/chained-rest-api-calls/m-p/739304#M68432</guid>
      <dc:creator>JorgeVinagre</dc:creator>
      <dc:date>2013-10-04T15:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Chained Rest Api Calls</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/chained-rest-api-calls/m-p/739305#M68433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Found it &lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/32931-How-to-use-dojo.Deferred-dojo.DeferredList-and-.then" rel="nofollow" target="_blank"&gt;http://forums.arcgis.com/threads/32931-How-to-use-dojo.Deferred-dojo.DeferredList-and-.then&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks guys&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 10:35:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/chained-rest-api-calls/m-p/739305#M68433</guid>
      <dc:creator>JorgeVinagre</dc:creator>
      <dc:date>2013-10-07T10:35:54Z</dc:date>
    </item>
  </channel>
</rss>

