<?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: Layer in Layer List Widget - Enable/Disable in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/layer-in-layer-list-widget-enable-disable/m-p/829419#M8138</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kafil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Here is how to hide certain layer in the LayerList widget:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/228186-layerlist-widget-programatically-filter-layers"&gt;https://community.esri.com/thread/228186-layerlist-widget-programatically-filter-layers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Mar 2020 12:59:07 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2020-03-24T12:59:07Z</dc:date>
    <item>
      <title>Layer in Layer List Widget - Enable/Disable</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/layer-in-layer-list-widget-enable-disable/m-p/829418#M8137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can we disable or enable layers in Layer list widget programmatically. I have a RestAPI where permissions are checked and based on that i need to disable or enable layers in Layer List Widget.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried adding below code in showLayers function but it dint work.&lt;/P&gt;&lt;PRE class="" style="color: #000000; background: #f5f2f0; border: 0px; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;CODE style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit;"&gt;this&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;config&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;layerOptions&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="" style="color: #669900; border: 0px; font-weight: inherit;"&gt;"roads_5062"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;]&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;display &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit;"&gt;false&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Is there any other place i need to set this, Please guide me on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2020 11:06:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/layer-in-layer-list-widget-enable-disable/m-p/829418#M8137</guid>
      <dc:creator>KafilBaig</dc:creator>
      <dc:date>2020-03-24T11:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Layer in Layer List Widget - Enable/Disable</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/layer-in-layer-list-widget-enable-disable/m-p/829419#M8138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kafil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Here is how to hide certain layer in the LayerList widget:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/228186-layerlist-widget-programatically-filter-layers"&gt;https://community.esri.com/thread/228186-layerlist-widget-programatically-filter-layers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2020 12:59:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/layer-in-layer-list-widget-enable-disable/m-p/829419#M8138</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-03-24T12:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Layer in Layer List Widget - Enable/Disable</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/layer-in-layer-list-widget-enable-disable/m-p/829420#M8139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to implement this code but no result. Please let me know where exactly I need to place this code to work . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don’t want to click the button of layer widget. It should automatically disable on startup . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from my iPhone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2020 17:11:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/layer-in-layer-list-widget-enable-disable/m-p/829420#M8139</guid>
      <dc:creator>KafilBaig</dc:creator>
      <dc:date>2020-03-25T17:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Layer in Layer List Widget - Enable/Disable</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/layer-in-layer-list-widget-enable-disable/m-p/829421#M8140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kafil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I do have exact directions for your workflow. I have provided a link to a method that use a button click, but that same code can be used when the widget starts based on your requirements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2020 17:28:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/layer-in-layer-list-widget-enable-disable/m-p/829421#M8140</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-03-25T17:28:31Z</dc:date>
    </item>
  </channel>
</rss>

