<?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: Geocoder Widget Bug Fix in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geocoder-widget-bug-fix/m-p/690842#M18266</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't make any changes to the code. I'm suggesting that the Dev team look into it. I had an issue here because I have a web map with a map service. I'm using the first layer within the map service for searching. What I understand to be occurring in the code block provided is:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The 'feature.infoTemplate' value is set to the layer's infoTemplate property if it exists which it doesn't in my case because the layer is an ArcGISDynamicMapServiceLayer which has no infoTemplate property. &lt;/LI&gt;&lt;LI&gt;The expression then evaluates the line that I highlighted which I believe was intended to determine if the activeGeocoder.subLayerId exists (i.e is not null or undefined). Because the subLayerId in my case is 0, both sides of the '||' in the expression are falsy so null is assigned to&amp;nbsp; 'feature.infoTemplate'. In the following code block the&amp;nbsp; 'feature.infoTemplate' is interpolated which is not what I want.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;My workaround was to make the search layer the second layer in the web map so that activeGeocoder.subLayerId is 1 and the expression evaluates properly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Apr 2015 18:26:29 GMT</pubDate>
    <dc:creator>deleted-user-YYhuCJuuEn9L</dc:creator>
    <dc:date>2015-04-07T18:26:29Z</dc:date>
    <item>
      <title>Geocoder Widget Bug Fix</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geocoder-widget-bug-fix/m-p/690840#M18264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello WAB Dev Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just FYI, I think it may be necessary to modify this line in the showResults method of the Geocoder widget. A subLayerId of 0 is falsy so the feature.infoTemplate end up being null and it's infoTemplate is not recognized. As a workaround I had to change the index of the subLayer with the infoTemplate so that it's subLayerId would be 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/81665_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 17:01:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geocoder-widget-bug-fix/m-p/690840#M18264</guid>
      <dc:creator>deleted-user-YYhuCJuuEn9L</dc:creator>
      <dc:date>2015-04-03T17:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Geocoder Widget Bug Fix</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geocoder-widget-bug-fix/m-p/690841#M18265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ryan,&lt;/P&gt;&lt;P&gt;I am interested in what you are doing here. Can you explain more about the sublayerid and what you changed in your code? From the looks of it I can't see any difference in the code you provided and the code in the Dev version 1.1 unless I am just missing it.&lt;/P&gt;&lt;P&gt;-Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 15:21:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geocoder-widget-bug-fix/m-p/690841#M18265</guid>
      <dc:creator>StanMcShinsky</dc:creator>
      <dc:date>2015-04-07T15:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Geocoder Widget Bug Fix</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geocoder-widget-bug-fix/m-p/690842#M18266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't make any changes to the code. I'm suggesting that the Dev team look into it. I had an issue here because I have a web map with a map service. I'm using the first layer within the map service for searching. What I understand to be occurring in the code block provided is:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The 'feature.infoTemplate' value is set to the layer's infoTemplate property if it exists which it doesn't in my case because the layer is an ArcGISDynamicMapServiceLayer which has no infoTemplate property. &lt;/LI&gt;&lt;LI&gt;The expression then evaluates the line that I highlighted which I believe was intended to determine if the activeGeocoder.subLayerId exists (i.e is not null or undefined). Because the subLayerId in my case is 0, both sides of the '||' in the expression are falsy so null is assigned to&amp;nbsp; 'feature.infoTemplate'. In the following code block the&amp;nbsp; 'feature.infoTemplate' is interpolated which is not what I want.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;My workaround was to make the search layer the second layer in the web map so that activeGeocoder.subLayerId is 1 and the expression evaluates properly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 18:26:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geocoder-widget-bug-fix/m-p/690842#M18266</guid>
      <dc:creator>deleted-user-YYhuCJuuEn9L</dc:creator>
      <dc:date>2015-04-07T18:26:29Z</dc:date>
    </item>
  </channel>
</rss>

