<?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: Error when reading app config from Arcgis Online in Classic Esri Story Maps Questions</title>
    <link>https://community.esri.com/t5/classic-esri-story-maps-questions/error-when-reading-app-config-from-arcgis-online/m-p/116596#M1205</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Mark,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The app config is being built with the generic ArcgisOnline template configuration tool, the one found in the item details page, when clicking on "Configure App" button.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have checked the syntax in &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://doc.arcgis.com/en/arcgis-online/create-maps/configurable-templates.htm"&gt;http://doc.arcgis.com/en/arcgis-online/create-maps/configurable-templates.htm&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;but did not find a specific field type for arrays, that's what led me to use a comma-separated string.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Besides, the comma syntax is used in tabbed story template and side-by-side (or at least was, until recently)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I could use two parameters of type "webmap", but i think the template would not recognise that either.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jun 2014 08:44:28 GMT</pubDate>
    <dc:creator>PincoPalle</dc:creator>
    <dc:date>2014-06-04T08:44:28Z</dc:date>
    <item>
      <title>Error when reading app config from Arcgis Online</title>
      <link>https://community.esri.com/t5/classic-esri-story-maps-questions/error-when-reading-app-config-from-arcgis-online/m-p/116594#M1203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have deployed a map viewer based on this excellent swipe viewer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Configuration is read from an arcgisonline application, through the appid parameter&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I have found that some parameters are not correctly parsed&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Starting in /Swipe/src/app/storymaps/core/Core.js, line 395, the response from the JSON app data is processed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This code&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var webmapsIds = WebApplicationData.getWebmaps(false);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;should return an array with the webmap ids, but it returns the plain string (no splitting performed)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That causes the if()s in the following lines to behave unexpectedly, namely&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;411: if (webmapsIds &amp;amp;&amp;amp; webmapsIds.length == 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Besides, the other part of that if():&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WebApplicationData.getDataModel()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Returns undefined, even if the app.model property is correctly set to �??TWO_WEBMAPS�?�&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So it all goes through the wrong branch of the if() in line 425 and fails.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am i missing something, or is there a specific way i should configure my app?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sample app data:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.arcgis.com/sharing/content/items/9af86922e9d94aceadf65acc6bb30b4d/data?f=json"&gt;http://www.arcgis.com/sharing/content/items/9af86922e9d94aceadf65acc6bb30b4d/data?f=json&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sample viewer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://storymaps.esri.com/templates/swipe/?appid=9af86922e9d94aceadf65acc6bb30b4d"&gt;http://storymaps.esri.com/templates/swipe/?appid=9af86922e9d94aceadf65acc6bb30b4d&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, regards!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 14:44:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/classic-esri-story-maps-questions/error-when-reading-app-config-from-arcgis-online/m-p/116594#M1203</guid>
      <dc:creator>PincoPalle</dc:creator>
      <dc:date>2014-05-28T14:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error when reading app config from Arcgis Online</title>
      <link>https://community.esri.com/t5/classic-esri-story-maps-questions/error-when-reading-app-config-from-arcgis-online/m-p/116595#M1204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry you are experiencing trouble with the swipe app and it reading the app config information from AGOL.&amp;nbsp; Taking a look, the function should return an array instead of a string (and the webmaps paramter from AGOL should also be an array).&amp;nbsp; Are you using the swipe builder to populate the app config info, or another process?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 17:56:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/classic-esri-story-maps-questions/error-when-reading-app-config-from-arcgis-online/m-p/116595#M1204</guid>
      <dc:creator>MarkCooney</dc:creator>
      <dc:date>2014-05-29T17:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error when reading app config from Arcgis Online</title>
      <link>https://community.esri.com/t5/classic-esri-story-maps-questions/error-when-reading-app-config-from-arcgis-online/m-p/116596#M1205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Mark,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The app config is being built with the generic ArcgisOnline template configuration tool, the one found in the item details page, when clicking on "Configure App" button.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have checked the syntax in &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://doc.arcgis.com/en/arcgis-online/create-maps/configurable-templates.htm"&gt;http://doc.arcgis.com/en/arcgis-online/create-maps/configurable-templates.htm&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;but did not find a specific field type for arrays, that's what led me to use a comma-separated string.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Besides, the comma syntax is used in tabbed story template and side-by-side (or at least was, until recently)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I could use two parameters of type "webmap", but i think the template would not recognise that either.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 08:44:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/classic-esri-story-maps-questions/error-when-reading-app-config-from-arcgis-online/m-p/116596#M1205</guid>
      <dc:creator>PincoPalle</dc:creator>
      <dc:date>2014-06-04T08:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error when reading app config from Arcgis Online</title>
      <link>https://community.esri.com/t5/classic-esri-story-maps-questions/error-when-reading-app-config-from-arcgis-online/m-p/116597#M1206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry for the confusion on the syntax.&amp;nbsp; The 'webmap' parameter is indeed a string and points to the app's 'root' webmap id.&amp;nbsp; There is also a parameter for when two web maps are used called 'webmaps' that is an array of web map ids.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 16:05:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/classic-esri-story-maps-questions/error-when-reading-app-config-from-arcgis-online/m-p/116597#M1206</guid>
      <dc:creator>MarkCooney</dc:creator>
      <dc:date>2014-06-04T16:05:01Z</dc:date>
    </item>
  </channel>
</rss>

