<?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>idea Filter Widget - Remove Filters for Missing Layers in ArcGIS Web AppBuilder Ideas</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-ideas/filter-widget-remove-filters-for-missing-layers/idi-p/935005</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Other widgets omit references to layers if they are missing. For example, if a layer does not load, then it will not appear in the layer widget, the batch editing widget, etc. This is not the case with the filter widget. The associated filter will still appear with a message that the layer could not be loaded. Would be better if it did not display at all.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Mar 2020 16:43:24 GMT</pubDate>
    <dc:creator>KeithGerhartz1</dc:creator>
    <dc:date>2020-03-04T16:43:24Z</dc:date>
    <item>
      <title>Filter Widget - Remove Filters for Missing Layers</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-ideas/filter-widget-remove-filters-for-missing-layers/idi-p/935005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Other widgets omit references to layers if they are missing. For example, if a layer does not load, then it will not appear in the layer widget, the batch editing widget, etc. This is not the case with the filter widget. The associated filter will still appear with a message that the layer could not be loaded. Would be better if it did not display at all.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2020 16:43:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-ideas/filter-widget-remove-filters-for-missing-layers/idi-p/935005</guid>
      <dc:creator>KeithGerhartz1</dc:creator>
      <dc:date>2020-03-04T16:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Widget - Remove Filters for Missing Layers</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-ideas/filter-widget-remove-filters-for-missing-layers/idc-p/935006#M679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For what it is worth. You can add one line of code to the filter widget javascript file to hide filter nodes for layers that are missing in the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_setFilterNodeError: function(node, layerId){&lt;BR /&gt; //remove arrow-icon, disable toggle-btn, add warnning-icon&lt;BR /&gt; var errorTitle = this.jimuNls.map.layerLoadedError.replace('${layers}', layerId);&lt;BR /&gt; html.setAttr(node, 'aria-disabled', 'true');&lt;BR /&gt; html.removeClass(node, 'config-parameters');&lt;BR /&gt; html.removeClass(node, 'has-ask-for-value');&lt;BR /&gt; html.addClass(node, 'not-has-ask-for-value');&lt;BR /&gt; &lt;BR /&gt; //Added by K Gerhartz to remove filters that are associated with layers that are not present in the map&lt;BR /&gt; &lt;EM&gt;&lt;STRONG&gt;html.setStyle(node, 'display', 'none');&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//change arrow to error&lt;BR /&gt; var arrow = query('.arrow', node)[0];&lt;BR /&gt; html.removeClass(arrow, 'arrow');&lt;BR /&gt; html.addClass(arrow, 'error');&lt;BR /&gt; html.setAttr(arrow, 'title', errorTitle);&lt;BR /&gt; html.setStyle(arrow, 'display', 'block');&lt;BR /&gt; },&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2020 18:27:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-ideas/filter-widget-remove-filters-for-missing-layers/idc-p/935006#M679</guid>
      <dc:creator>KeithGerhartz1</dc:creator>
      <dc:date>2020-03-04T18:27:09Z</dc:date>
    </item>
  </channel>
</rss>

