<?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: Survey 123 template in App Studio - load multiple predetermined surveys in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/survey-123-template-in-app-studio-load-multiple/m-p/855664#M24689</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, thank you, that's what I thought. I just barely know JS, but I will try for loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Yulia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Oct 2019 18:43:22 GMT</pubDate>
    <dc:creator>YuliaMamonova</dc:creator>
    <dc:date>2019-10-02T18:43:22Z</dc:date>
    <item>
      <title>Survey 123 template in App Studio - load multiple predetermined surveys</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey-123-template-in-app-studio-load-multiple/m-p/855662#M24687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to change the template in a way that it downloads all surveys available for a user when the user opens the app for the first time, and then updates all of them on opening the app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I successfully got it work for another app, but only for 1 survey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possibly to do the same for multiple surveys?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2019 18:25:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey-123-template-in-app-studio-load-multiple/m-p/855662#M24687</guid>
      <dc:creator>YuliaMamonova</dc:creator>
      <dc:date>2019-10-01T18:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Survey 123 template in App Studio - load multiple predetermined surveys</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey-123-template-in-app-studio-load-multiple/m-p/855663#M24688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yulia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This might be better addressed in the &lt;A href="https://community.esri.com/group/4076"&gt;AppStudio for ArcGIS&lt;/A&gt;‌ forum. &amp;nbsp;If you have the code working for one survey, you should be able to get it to work inside a for loop or similar to download multiple.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2019 16:42:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey-123-template-in-app-studio-load-multiple/m-p/855663#M24688</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2019-10-02T16:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Survey 123 template in App Studio - load multiple predetermined surveys</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey-123-template-in-app-studio-load-multiple/m-p/855664#M24689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, thank you, that's what I thought. I just barely know JS, but I will try for loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Yulia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2019 18:43:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey-123-template-in-app-studio-load-multiple/m-p/855664#M24689</guid>
      <dc:creator>YuliaMamonova</dc:creator>
      <dc:date>2019-10-02T18:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Survey 123 template in App Studio - load multiple predetermined surveys</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey-123-template-in-app-studio-load-multiple/m-p/855665#M24690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I tried for loop to iterate through an array with item ids that I want to download, but it still only downloads the first one when I run. Please look at my code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;IMG __jive_id="461153" src="https://community.esri.com/legacyfs/online/461153_pastedImage_1.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I run it in QT Creator, and this is what I see:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/461155_pastedImage_1.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;It checks the second form too, but it's not downloading it. Please suggest!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Yulia&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2019 02:59:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey-123-template-in-app-studio-load-multiple/m-p/855665#M24690</guid>
      <dc:creator>YuliaMamonova</dc:creator>
      <dc:date>2019-10-04T02:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Survey 123 template in App Studio - load multiple predetermined surveys</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey-123-template-in-app-studio-load-multiple/m-p/855666#M24691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yulia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that the downloading sequence is happening too fast - the second download is attempting to start before the downloaded() signal for the first form has been fired. &amp;nbsp;To accommodate this, I restructured the loop to be incremented by the onDownloaded function in the OpenParametersPanel. The specifics are (All on &lt;STRONG&gt;SurveysGalleryPage.qml&lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;1. Create properties for SurveysGalleryPage that are the list of forms and the current position in the index:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="/legacyfs/online/461340_Screen Shot 2019-10-07 at 11.31.21 AM.png" /&gt;&lt;/P&gt;&lt;P&gt;2. Begin the download of the first item in Component.onCompleted and have a handler for dl_num to download the next survey when that variable is incremented (I placed this immediately below the &lt;EM&gt;property&lt;/EM&gt; statements:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-2 jive-image" height="114" src="/legacyfs/online/461341_Screen Shot 2019-10-07 at 11.35.01 AM.png" width="321" /&gt;&lt;/P&gt;&lt;P&gt;3. In the OpenParametersPanel, add the loop logic and incrementation to increase dl_num after a download has succeeded:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-3 jive-emoji jive-image" height="170" src="/legacyfs/online/461343_Screen Shot 2019-10-07 at 11.36.42 AM.png" width="356" /&gt;&lt;/P&gt;&lt;P&gt;4. (Optional). &amp;nbsp;The OpenParameters were designed with the expectation that only 1 survey would be requested when the app is opened; part of the workflow of using OpenParameters is to open the form after download. &amp;nbsp;This is done through the selected() function in checkOpenParameters(). &amp;nbsp;Since you are downloading multiple forms, it's not known which form should be immediately open after download; to prevent both forms from opening on the stack, I disabled the selected() function:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-4 jive-image" height="165" src="/legacyfs/online/461344_Screen Shot 2019-10-07 at 11.40.13 AM.png" width="558" /&gt;&lt;/P&gt;&lt;P&gt;If you know which should be opened, you could instead check for it based on itemID. &amp;nbsp;The other forms would continue to download.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2019 18:41:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey-123-template-in-app-studio-load-multiple/m-p/855666#M24691</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2019-10-07T18:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Survey 123 template in App Studio - load multiple predetermined surveys</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey-123-template-in-app-studio-load-multiple/m-p/855667#M24692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much! Will try it right now!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2019 19:30:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey-123-template-in-app-studio-load-multiple/m-p/855667#M24692</guid>
      <dc:creator>YuliaMamonova</dc:creator>
      <dc:date>2019-10-09T19:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Survey 123 template in App Studio - load multiple predetermined surveys</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey-123-template-in-app-studio-load-multiple/m-p/855668#M24693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you SO MUCH, it works perfectly!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2019 20:03:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey-123-template-in-app-studio-load-multiple/m-p/855668#M24693</guid>
      <dc:creator>YuliaMamonova</dc:creator>
      <dc:date>2019-10-09T20:03:33Z</dc:date>
    </item>
  </channel>
</rss>

