<?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: LayerList/jimu.js Bug? in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/layerlist-jimu-js-bug/m-p/547157#M14515</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Richard...I added it to the &lt;A href="https://community.esri.com/migration-blogpost/2580"&gt;Web AppBuilder Developer Edition - Customization Resource List&lt;/A&gt;​&amp;nbsp; but you may want to rename the post to say "Tip" or "workaround" since it is a solution/discussion rather than a question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jul 2016 16:51:32 GMT</pubDate>
    <dc:creator>RebeccaStrauch__GISP</dc:creator>
    <dc:date>2016-07-21T16:51:32Z</dc:date>
    <item>
      <title>LayerList/jimu.js Bug?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/layerlist-jimu-js-bug/m-p/547155#M14513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if this is the appropriate place to post this but here goes...&lt;/P&gt;&lt;P&gt;Using WAB 2.0 and 2.1 when I add a layer that is was published on my local ArcGIS server in a folder other than the root folder, the service name displayed in the LayerList is the folder name not the map service name.&amp;nbsp; I was able to track ti issue to jimu.js/LayerInfos/LayerInfos.js&amp;nbsp; In the code it assumes the service name to be the next part of the url after "rest/services". &lt;/P&gt;&lt;P&gt;To get the code to work for me I changed the following code&amp;nbsp; (line 598 in V2.1)&lt;/P&gt;&lt;P&gt;existing code...&lt;/P&gt;&lt;P&gt;serviceName = layer.url.substring(index2).split('/')[0];&lt;/P&gt;&lt;P&gt;New code...&lt;/P&gt;&lt;P&gt;serviceName = layer.url.replace(/\d+$/, '').replace(/\/$/, "").split('/').slice(-2)[0];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The new code strips any trailing layer numbers and slashes then takes the next to last value in the new url as the map service name.&amp;nbsp; This assumes that the map service name would always be in that position.&amp;nbsp; At least it has been for anything I have published but I'm not sure of all of the possible url formats.&amp;nbsp; But this does fix my issue and is a quick fix for anyone that might have the same issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 16:59:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/layerlist-jimu-js-bug/m-p/547155#M14513</guid>
      <dc:creator>RichardAbram</dc:creator>
      <dc:date>2016-07-20T16:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: LayerList/jimu.js Bug?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/layerlist-jimu-js-bug/m-p/547156#M14514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Richard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thanks for post your code fix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/53998"&gt;Lemao Wu&lt;/A&gt;​&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 14:01:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/layerlist-jimu-js-bug/m-p/547156#M14514</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-07-21T14:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: LayerList/jimu.js Bug?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/layerlist-jimu-js-bug/m-p/547157#M14515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Richard...I added it to the &lt;A href="https://community.esri.com/migration-blogpost/2580"&gt;Web AppBuilder Developer Edition - Customization Resource List&lt;/A&gt;​&amp;nbsp; but you may want to rename the post to say "Tip" or "workaround" since it is a solution/discussion rather than a question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 16:51:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/layerlist-jimu-js-bug/m-p/547157#M14515</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2016-07-21T16:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: LayerList/jimu.js Bug?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/layerlist-jimu-js-bug/m-p/547158#M14516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Richard and Robert. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2016 06:06:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/layerlist-jimu-js-bug/m-p/547158#M14516</guid>
      <dc:creator>LemaoWu</dc:creator>
      <dc:date>2016-07-22T06:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: LayerList/jimu.js Bug?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/layerlist-jimu-js-bug/m-p/547159#M14517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The fix has been checked in and will be available in &amp;nbsp;Online update (mid-September) and the Dev Edition after the Online update. Thanks Richard.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2016 11:49:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/layerlist-jimu-js-bug/m-p/547159#M14517</guid>
      <dc:creator>LemaoWu</dc:creator>
      <dc:date>2016-09-02T11:49:31Z</dc:date>
    </item>
  </channel>
</rss>

