<?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 How to filter features on map in Web AppBuilder? in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481550#M12658</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to use the filter function from the layer table in the Web AppBuilder as we would use the definition query in ArcMap.&amp;nbsp; But in the Web AppBuilder, it wouldn't hide the unwanted features.&amp;nbsp; It'd just filter them out in the layer table, but no effect on the map at all and still showing everything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I tried to use the Query widget, it'd just highlight the filtered features, but still not hiding the unwanted features on map.&amp;nbsp; The "Use spatial filter to limit features" box doesn't do anything.&amp;nbsp; Is it a bug?&amp;nbsp; Or am I doing something wrong or misunderstood something here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help,&lt;/P&gt;&lt;P&gt;Emily&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jul 2015 23:06:39 GMT</pubDate>
    <dc:creator>EmilyLee</dc:creator>
    <dc:date>2015-07-30T23:06:39Z</dc:date>
    <item>
      <title>How to filter features on map in Web AppBuilder?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481550#M12658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to use the filter function from the layer table in the Web AppBuilder as we would use the definition query in ArcMap.&amp;nbsp; But in the Web AppBuilder, it wouldn't hide the unwanted features.&amp;nbsp; It'd just filter them out in the layer table, but no effect on the map at all and still showing everything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I tried to use the Query widget, it'd just highlight the filtered features, but still not hiding the unwanted features on map.&amp;nbsp; The "Use spatial filter to limit features" box doesn't do anything.&amp;nbsp; Is it a bug?&amp;nbsp; Or am I doing something wrong or misunderstood something here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help,&lt;/P&gt;&lt;P&gt;Emily&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 23:06:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481550#M12658</guid>
      <dc:creator>EmilyLee</dc:creator>
      <dc:date>2015-07-30T23:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter features on map in Web AppBuilder?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481551#M12659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Emily,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The Attribute Table Widget in WAB allows for filtering layers in the map based on the users map extent when choosing the option "Filter by Map Extent"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The Query widget allows you to select features from a layer configured in the widget and adds a new layer to the map with the results of the query. So it does not filter layers already in the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no widget currently available that allows for the filtering of features in the map.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 13:13:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481551#M12659</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-07-31T13:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter features on map in Web AppBuilder?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481552#M12660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Robert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 15:20:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481552#M12660</guid>
      <dc:creator>EmilyLee</dc:creator>
      <dc:date>2015-07-31T15:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter features on map in Web AppBuilder?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481553#M12661</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;I dont suppose there is now a means of applying a definition query or 'filter' to a layer to show specific records on the map (as stated by the original poster)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2016 20:38:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481553#M12661</guid>
      <dc:creator>MichaelRobb</dc:creator>
      <dc:date>2016-01-22T20:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter features on map in Web AppBuilder?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481554#M12662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Currently still no.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2016 21:20:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481554#M12662</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-01-22T21:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter features on map in Web AppBuilder?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481555#M12663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With your knowledge, would a means of creating a widget with buttons that would signify a User Defined request work?&amp;nbsp; the button goes through a group layer in the TOC, removes all visibility and enables the one... &lt;/P&gt;&lt;P&gt;so x amount of layers with the preloaded definition query are published... the button in the widget selects and enables the one for visible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2016 22:03:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481555#M12663</guid>
      <dc:creator>MichaelRobb</dc:creator>
      <dc:date>2016-01-22T22:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter features on map in Web AppBuilder?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481556#M12664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Sure, I have looked at this in the past, but creating a configurable widget for this (one not hard coded for certain layers) is a big deal and a high level of effort. I don't have the free time to develop this or come up with the basic code needed to get some one started.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2016 22:42:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481556#M12664</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-01-22T22:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter features on map in Web AppBuilder?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481557#M12665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, &lt;/P&gt;&lt;P&gt;I was not insinuating you write anything.&amp;nbsp; Just thinking of alternatives to mimic the use (with limitations).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2016 22:56:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481557#M12665</guid>
      <dc:creator>MichaelRobb</dc:creator>
      <dc:date>2016-01-22T22:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter features on map in Web AppBuilder?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481558#M12666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; No problem, I just wanted to clarify as some time I will not hesitate to write the code for things.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2016 23:03:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481558#M12666</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-01-22T23:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter features on map in Web AppBuilder?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481559#M12667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please how to filter features on map in web Appbuilder (draw results in map ) and open attribute table automatically like in in enhanced serach&amp;nbsp;&lt;/P&gt;&lt;H1 style="background-color: #ffffff; border: 0px; font-weight: 200; font-size: 2rem;"&gt;&lt;/H1&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 08:17:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481559#M12667</guid>
      <dc:creator>ikbelkachbouri</dc:creator>
      <dc:date>2018-01-22T08:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter features on map in Web AppBuilder?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481560#M12668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ikbel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The filter widget in WAB does filter features on the map based on the filter expression. For opening the Attribute Table widget automatically you can follow this guide:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/web-appbuilder/sample-code/send-a-layer-to-attribute-table-widget.htm" title="https://developers.arcgis.com/web-appbuilder/sample-code/send-a-layer-to-attribute-table-widget.htm"&gt;Send a layer to the Attribute Table widget—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 13:49:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481560#M12668</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-01-22T13:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter features on map in Web AppBuilder?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481561#M12669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to show the filter widget result in the map (Selection ) (draw result) .&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 13:59:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481561#M12669</guid>
      <dc:creator>ikbelkachbouri</dc:creator>
      <dc:date>2018-01-22T13:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter features on map in Web AppBuilder?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481562#M12670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ikbel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Maybe you are not understanding. The filter widget DOES show the results on the map.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 14:06:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481562#M12670</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-01-22T14:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter features on map in Web AppBuilder?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481563#M12671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just the Zoom but there is no result layer or selection in the map .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 14:12:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481563#M12671</guid>
      <dc:creator>ikbelkachbouri</dc:creator>
      <dc:date>2018-01-22T14:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter features on map in Web AppBuilder?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481564#M12672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ikbel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Then you are not using the filter widget correctly.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/web-appbuilder/guide/widget-filter.htm" title="https://developers.arcgis.com/web-appbuilder/guide/widget-filter.htm"&gt;Filter widget—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 14:18:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481564#M12672</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-01-22T14:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter features on map in Web AppBuilder?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481565#M12673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me to modify this code in order to show filter widget results in attribute tabe automatically .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Widget.js&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;///////////////////////////////////////////////////////////////////////////&lt;BR /&gt;// Copyright © 2014 - 2017 Esri. All Rights Reserved.&lt;BR /&gt;//&lt;BR /&gt;// Licensed under the Apache License Version 2.0 (the "License");&lt;BR /&gt;// you may not use this file except in compliance with the License.&lt;BR /&gt;// You may obtain a copy of the License at&lt;BR /&gt;//&lt;BR /&gt;&lt;SPAN&gt;// &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.apache.org%2Flicenses%2FLICENSE-2.0" rel="nofollow" target="_blank"&gt;http://www.apache.org/licenses/LICENSE-2.0&lt;/A&gt;&lt;BR /&gt;//&lt;BR /&gt;// Unless required by applicable law or agreed to in writing, software&lt;BR /&gt;// distributed under the License is distributed on an "AS IS" BASIS,&lt;BR /&gt;// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.&lt;BR /&gt;// See the License for the specific language governing permissions and&lt;BR /&gt;// limitations under the License.&lt;BR /&gt;///////////////////////////////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;define([&lt;BR /&gt; 'dojo/_base/declare',&lt;BR /&gt; 'dojo/_base/array',&lt;BR /&gt; 'dojo/_base/html',&lt;BR /&gt; 'dojo/_base/lang',&lt;BR /&gt; 'dojo/query',&lt;BR /&gt; 'dojo/on',&lt;BR /&gt; 'dijit/_WidgetsInTemplateMixin',&lt;BR /&gt; 'jimu/utils',&lt;BR /&gt; 'jimu/BaseWidget',&lt;BR /&gt; 'jimu/filterUtils',&lt;BR /&gt; 'jimu/dijit/FilterParameters',&lt;BR /&gt; 'jimu/LayerInfos/LayerInfos',&lt;BR /&gt; 'jimu/FilterManager',&lt;BR /&gt; 'esri/request',&lt;BR /&gt; 'esri/tasks/query',&lt;BR /&gt; 'esri/tasks/QueryTask',&lt;BR /&gt; 'jimu/dijit/LayerChooserFromMapWithDropbox',&lt;BR /&gt; 'jimu/dijit/Filter',&lt;BR /&gt; './CustomFeaturelayerChooserFromMap',&lt;BR /&gt; 'jimu/dijit/ToggleButton',&lt;BR /&gt; 'dojo/NodeList',&lt;BR /&gt; 'dojo/NodeList-dom'&lt;BR /&gt; ],&lt;BR /&gt; function(declare, array, html, lang, query, on, _WidgetsInTemplateMixin,&lt;BR /&gt; jimuUtils, BaseWidget, FilterUtils, FilterParameters,LayerInfos,FilterManager,&lt;BR /&gt; esriRequest, Query, QueryTask, LayerChooserFromMapWithDropbox, Filter, CustomFeaturelayerChooserFromMap, ToggleButton) {&lt;/P&gt;&lt;P&gt;return declare([BaseWidget, _WidgetsInTemplateMixin], {&lt;BR /&gt; name: 'Filter',&lt;BR /&gt; baseClass: 'jimu-widget-filter',&lt;BR /&gt; //style="display:${hasValue}"&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;/P&gt;&lt;P&gt;_itemTemplate: '&amp;lt;li class="filter-item" data-index="${index}"&amp;gt;' +&lt;BR /&gt; '&amp;lt;div class="header" &amp;gt;' +&lt;BR /&gt; '&amp;lt;span class="arrow jimu-float-leading jimu-trailing-margin05" title="${toggleTip}" &amp;gt;&amp;lt;/span&amp;gt;' +&lt;BR /&gt; '&amp;lt;span class="icon"&amp;gt;' +&lt;BR /&gt; '&amp;lt;img src="${icon}" /&amp;gt;' +&lt;BR /&gt; '&amp;lt;/span&amp;gt;' +&lt;BR /&gt; '&amp;lt;span class="item-title"&amp;gt;${title}&amp;lt;/span&amp;gt;' +&lt;BR /&gt; '&amp;lt;span class="toggle-filter jimu-trailing-margin1"&amp;gt;&amp;lt;/span&amp;gt;' +&lt;BR /&gt; '&amp;lt;/div&amp;gt;' +&lt;BR /&gt; '&amp;lt;div class="body"&amp;gt;' +&lt;BR /&gt; '&amp;lt;div class="parameters"&amp;gt;&amp;lt;/div&amp;gt;' +&lt;BR /&gt; '&amp;lt;/div&amp;gt;' +&lt;BR /&gt; '&amp;lt;/li&amp;gt;',&lt;BR /&gt; _store: null,&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;/P&gt;&lt;P&gt;postMixInProperties:function(){&lt;BR /&gt; this.jimuNls = window.jimuNls;&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;postCreate: function(){&lt;BR /&gt; this.inherited(arguments);&lt;BR /&gt; this._store = {};&lt;BR /&gt; this.layerInfosObj = LayerInfos.getInstanceSync();&lt;BR /&gt; this.filterUtils = new FilterUtils();&lt;BR /&gt; this.filterManager = FilterManager.getInstance();&lt;/P&gt;&lt;P&gt;if(this.config.allowCustom){&lt;BR /&gt; html.setStyle(this.showCustomButtonNode, 'display', 'block');&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;var existAskForValue = false;&lt;/P&gt;&lt;P&gt;var filters = this.config.filters;&lt;BR /&gt; array.forEach(filters, function(filterObj, idx) {&lt;BR /&gt; var isAskForValue = this.filterUtils.isAskForValues(filterObj.filter);&lt;/P&gt;&lt;P&gt;if(isAskForValue){&lt;BR /&gt; existAskForValue = true;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;var parse = {&lt;BR /&gt; icon: filterObj.icon ? jimuUtils.processUrlInWidgetConfig(filterObj.icon, this.folderUrl) :&lt;BR /&gt; this.folderUrl + '/css/images/default_task_icon.png',&lt;BR /&gt; index: idx,&lt;BR /&gt; title: filterObj.name,&lt;BR /&gt; toggleTip: this.nls.toggleTip,&lt;BR /&gt; hasValue: isAskForValue ?&lt;BR /&gt; (window.appInfo.isRunInMobile ? 'block !important' : '') : 'none',&lt;BR /&gt; isAskForValue: isAskForValue,&lt;BR /&gt; apply: lang.getObject('jimuNls.common.apply', false, window) || 'Apply'&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;if (!this._store[filterObj.layerId]) {&lt;BR /&gt; this._store[filterObj.layerId] = {&lt;BR /&gt; mapFilterControls: {}&lt;BR /&gt; // filter_item_idx&lt;BR /&gt; }; // filter_item_idx, mapFilterControls&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;var template = lang.replace(this._itemTemplate, parse, /\$\{([^\}]+)\}/ig);&lt;BR /&gt; var node = html.toDom(template);&lt;BR /&gt; html.place(node, this.filterList);&lt;BR /&gt; var toggleButton = new ToggleButton({}, query('.toggle-filter', node)[0]);&lt;BR /&gt; toggleButton.startup();&lt;BR /&gt; node.toggleButton = toggleButton;&lt;BR /&gt; this.own(&lt;BR /&gt; query('.header', node)&lt;BR /&gt; .on('click', lang.hitch(this, 'toggleFilter', node, filterObj, parse))&lt;BR /&gt; );&lt;BR /&gt; if(isAskForValue){&lt;BR /&gt; html.addClass(node, 'has-ask-for-value');&lt;BR /&gt; }else{&lt;BR /&gt; html.addClass(node, 'not-has-ask-for-value');&lt;BR /&gt; }&lt;BR /&gt; if (parse.hasValue !== 'none') {&lt;BR /&gt; // add parameters&lt;BR /&gt; this.own(&lt;BR /&gt; query('.arrow', node)&lt;BR /&gt; .on('click', lang.hitch(this, 'configFilter', node, filterObj))&lt;BR /&gt; );&lt;BR /&gt; html.addClass(node, 'requesting');&lt;BR /&gt; this.configFilter(node, filterObj, null, lang.hitch(this, function(){&lt;BR /&gt; if(filterObj.collapse){&lt;BR /&gt; html.removeClass(node, 'config-parameters');&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;if(filterObj.autoApplyWhenWidgetOpen){&lt;BR /&gt; this.toggleFilter(node, filterObj, parse);&lt;BR /&gt; }&lt;BR /&gt; }));&lt;BR /&gt; }else{&lt;BR /&gt; if(filterObj.autoApplyWhenWidgetOpen){&lt;BR /&gt; this.toggleFilter(node, filterObj, parse);&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;}, this);&lt;/P&gt;&lt;P&gt;if(!existAskForValue){&lt;BR /&gt; html.addClass(this.domNode, 'not-exist-ask-for-value');&lt;BR /&gt; }&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;startup: function() {&lt;BR /&gt; this.inherited(arguments);&lt;BR /&gt; this.resize();&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; _getPriorityOfMapFilter: function(layerId) {&lt;BR /&gt; var mapFilterControls = lang.getObject(layerId + '.mapFilterControls', false, this._store);&lt;BR /&gt; var count = 0;&lt;BR /&gt; for (var p in mapFilterControls) {&lt;BR /&gt; var control = mapFilterControls&lt;/P&gt;&lt;P&gt;;&lt;BR /&gt; if (control.priority &amp;gt; count) {&lt;BR /&gt; count = control.priority;&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;return count;&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;_getMapFilterControl: function(layerId) {&lt;BR /&gt; var mapFilterControls = lang.getObject(layerId + '.mapFilterControls', false, this._store);&lt;BR /&gt; var count = 0;&lt;BR /&gt; var enable = true;&lt;BR /&gt; for (var p in mapFilterControls) {&lt;BR /&gt; var control = mapFilterControls&lt;/P&gt;&lt;P&gt;;&lt;BR /&gt; if (control.priority &amp;gt; count) {&lt;BR /&gt; enable = !!control.enable;&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;return enable;&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;_setItemFilter: function(layerId, idx, expr, enableMapFilter) {&lt;BR /&gt; this._store[layerId]['filter_item_' + idx] = expr;&lt;/P&gt;&lt;P&gt;var priority = this._getPriorityOfMapFilter(layerId);&lt;BR /&gt; lang.setObject(layerId + '.mapFilterControls.filter_item_' + idx , {&lt;BR /&gt; enable: enableMapFilter,&lt;BR /&gt; priority: priority + 1&lt;BR /&gt; }, this._store);&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;_removeItemFilter: function(layerId, idx) {&lt;BR /&gt; delete this._store[layerId]['filter_item_' + idx];&lt;BR /&gt; delete this._store[layerId].mapFilterControls['filter_item_' + idx];&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;_getExpr: function(layerId) {&lt;BR /&gt; if (!this._store[layerId]) {&lt;BR /&gt; return null;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;var parts = [];&lt;BR /&gt; var exprs = this._store[layerId];&lt;/P&gt;&lt;P&gt;for (var p in exprs) {&lt;BR /&gt; var expr = exprs&lt;/P&gt;&lt;P&gt;;&lt;BR /&gt; if (expr &amp;amp;&amp;amp; p !== 'mapFilterControls') {&lt;BR /&gt; parts.push('(' + expr + ')');&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;return parts.join(' AND ');&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;toggleFilter: function(node, filterObj, parse) {&lt;BR /&gt; if (html.hasClass(node, 'config-parameters') &amp;amp;&amp;amp;&lt;BR /&gt; !(node.filterParams &amp;amp;&amp;amp; node.filterParams.getFilterExpr())) {&lt;BR /&gt; return;&lt;BR /&gt; }&lt;BR /&gt; if (parse.isAskForValue &amp;amp;&amp;amp; !(node.filterParams &amp;amp;&amp;amp; node.filterParams.getFilterExpr())) {&lt;BR /&gt; this.configFilter(node, filterObj);&lt;BR /&gt; return;&lt;BR /&gt; }&lt;BR /&gt; // if(node.toggleButton.isDoing){&lt;BR /&gt; // return;&lt;BR /&gt; // }&lt;/P&gt;&lt;P&gt;var layerId = filterObj.layerId;&lt;BR /&gt; var idx = html.getAttr(node, 'data-index');&lt;BR /&gt; var layerFilterExpr = null;&lt;/P&gt;&lt;P&gt;var applied = html.hasClass(node, 'applied');&lt;BR /&gt; if (applied) {&lt;BR /&gt; html.removeClass(node, 'applied');&lt;BR /&gt; node.toggleButton.uncheck();&lt;BR /&gt; } else {&lt;BR /&gt; html.addClass(node, 'applied');&lt;BR /&gt; node.toggleButton.check();&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;var enableMapFilter = null;&lt;BR /&gt; if (!applied) {&lt;BR /&gt; var expr = this._getFilterExpr(node, filterObj);&lt;BR /&gt; this._setItemFilter(layerId, idx, expr, filterObj.enableMapFilter);&lt;BR /&gt; layerFilterExpr = this._getExpr(layerId);&lt;BR /&gt; enableMapFilter = this._getMapFilterControl(layerId);&lt;BR /&gt; this.filterManager.applyWidgetFilter(layerId, this.id, layerFilterExpr, enableMapFilter);&lt;BR /&gt; } else {&lt;BR /&gt; this._removeItemFilter(layerId, idx);&lt;BR /&gt; layerFilterExpr = this._getExpr(layerId);&lt;BR /&gt; enableMapFilter = this._getMapFilterControl(layerId);&lt;BR /&gt; this.filterManager.applyWidgetFilter(layerId, this.id, layerFilterExpr, enableMapFilter);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;this._afterFilterApplied(filterObj.layerId);&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;configFilter: function(node, filterObj, evt, cb) {&lt;BR /&gt; if (!node.filterParams) {&lt;BR /&gt; esriRequest({&lt;BR /&gt; url: filterObj.url,&lt;BR /&gt; content: {&lt;BR /&gt; f: 'json'&lt;BR /&gt; },&lt;BR /&gt; handleAs: 'json',&lt;BR /&gt; callbackPrams: 'callback'&lt;BR /&gt; }).then(lang.hitch(this, function(definition) {&lt;BR /&gt; html.addClass(node, 'config-parameters');&lt;BR /&gt; html.removeClass(node, 'requesting');&lt;BR /&gt; var pamDiv = query('.parameters', node)[0];&lt;BR /&gt; node.handles = [];&lt;BR /&gt; node.filterParams = new FilterParameters();&lt;BR /&gt; var partsObj = lang.clone(filterObj.filter);&lt;/P&gt;&lt;P&gt;var layerId = null;&lt;BR /&gt; if(filterObj.enableMapFilter){&lt;BR /&gt; //if enableMapFilter is true, pass layerId to filterParams,&lt;BR /&gt; //so filterParams can get the layer expr defined in webmap&lt;BR /&gt; layerId = filterObj.layerId;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;node.filterParams.build(filterObj.url, definition, partsObj, layerId);&lt;/P&gt;&lt;P&gt;this.own(on(node.filterParams, 'change', lang.hitch(this, function(expr) {&lt;BR /&gt; if (expr) {&lt;BR /&gt; node.expr = expr;&lt;BR /&gt; } else {&lt;BR /&gt; delete node.expr;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;if(node.toggleButton.checked){&lt;BR /&gt; this.applyFilterValues(node, filterObj);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;})));&lt;/P&gt;&lt;P&gt;node.expr = node.filterParams.getFilterExpr();&lt;BR /&gt; node.filterParams.placeAt(pamDiv);&lt;BR /&gt; this._changeItemTitleWidth(node, 60);&lt;BR /&gt; if(cb){&lt;BR /&gt; cb();&lt;BR /&gt; }&lt;BR /&gt; }));&lt;BR /&gt; } else {&lt;BR /&gt; if (!html.hasClass(node, 'config-parameters')) {&lt;BR /&gt; html.addClass(node, 'config-parameters');&lt;BR /&gt; this._changeItemTitleWidth(node, 60);&lt;BR /&gt; } else {&lt;BR /&gt; html.removeClass(node, 'config-parameters');&lt;BR /&gt; this._changeItemTitleWidth(node, window.appInfo.isRunInMobile ? 60 : 45);&lt;BR /&gt; }&lt;BR /&gt; if(cb){&lt;BR /&gt; cb();&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;if (evt &amp;amp;&amp;amp; evt.target) {&lt;BR /&gt; evt.stopPropagation();&lt;BR /&gt; }&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;applyFilterValues: function(node, filterObj, evt) {&lt;BR /&gt; var expr = this._getFilterExpr(node, filterObj);&lt;BR /&gt; if (expr) {&lt;BR /&gt; node.expr = expr;&lt;BR /&gt; // getFilterExpr&lt;BR /&gt; var layerId = filterObj.layerId;&lt;BR /&gt; var idx = html.getAttr(node, 'data-index');&lt;BR /&gt; html.addClass(node, 'applied');&lt;BR /&gt; this._setItemFilter(layerId, idx, node.expr, filterObj.enableMapFilter);&lt;BR /&gt; var layerFilterExpr = this._getExpr(layerId);&lt;BR /&gt; var enableMapFilter = this._getMapFilterControl(layerId);&lt;BR /&gt; this.filterManager.applyWidgetFilter(layerId, this.id, layerFilterExpr, enableMapFilter);&lt;/P&gt;&lt;P&gt;this._afterFilterApplied(filterObj.layerId);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;if(evt){&lt;BR /&gt; evt.stopPropagation();&lt;BR /&gt; }&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;_getFilterExpr: function(node, filterObj){&lt;BR /&gt; if(node.filterParams){&lt;BR /&gt; return node.filterParams.getFilterExpr();&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;if(this.filterUtils.hasVirtualDate(filterObj.filter)){&lt;BR /&gt; this.filterUtils.isHosted = jimuUtils.isHostedService(filterObj.url);&lt;BR /&gt; return this.filterUtils.getExprByFilterObj(filterObj.filter);&lt;BR /&gt; }else{&lt;BR /&gt; return filterObj.filter.expr;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;},&lt;/P&gt;&lt;P&gt;_afterFilterApplied: function(layerId){&lt;BR /&gt; if(!this.config.zoomto){&lt;BR /&gt; return;&lt;BR /&gt; }&lt;BR /&gt; var layerInfo = this.layerInfosObj.getLayerInfoById(layerId);&lt;BR /&gt; if(!layerInfo){&lt;BR /&gt; return;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;var query = new Query();&lt;BR /&gt; query.where = layerInfo.getFilter()? layerInfo.getFilter(): '1=1';&lt;BR /&gt; query.returnGeometry = true;&lt;BR /&gt; query.outSpatialReference = this.map.spatialReference;&lt;BR /&gt; var qryTask = new QueryTask(layerInfo.getUrl());&lt;BR /&gt; //query extent only firstly&lt;BR /&gt; qryTask.executeForExtent(query, lang.hitch(this, function(result){&lt;BR /&gt; if(result.extent &amp;amp;&amp;amp; this._isValidExtent(result.extent)){&lt;BR /&gt; this.map.setExtent(result.extent);&lt;BR /&gt; return;&lt;BR /&gt; }&lt;BR /&gt; //some services don't support query extent, do feature query.&lt;BR /&gt; query = new Query();&lt;BR /&gt; query.where = layerInfo.getFilter()? layerInfo.getFilter(): '1=1';&lt;BR /&gt; query.returnGeometry = true;&lt;BR /&gt; query.outSpatialReference = this.map.spatialReference;&lt;BR /&gt; qryTask = new QueryTask(layerInfo.getUrl());&lt;BR /&gt; qryTask.execute(query).then(lang.hitch(this, function(featureSet){&lt;BR /&gt; jimuUtils.featureAction.zoomTo(this.map, featureSet.features);&lt;BR /&gt; }));&lt;BR /&gt; }));&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;_isValidExtent: function(extent){&lt;BR /&gt; return !(isNaN(extent.xmax) || isNaN(extent.xmax) ||&lt;BR /&gt; isNaN(extent.xmax) || isNaN(extent.xmax));&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;resize: function() {&lt;BR /&gt; this.inherited(arguments);&lt;BR /&gt; this._changeItemTitleWidth(this.domNode, window.appInfo.isRunInMobile ? 60 : 45);&lt;BR /&gt; if(this.customFilter){&lt;BR /&gt; this.customFilter.resize();&lt;BR /&gt; }&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;_changeItemTitleWidth: function(node, tolerace) {&lt;BR /&gt; tolerace += 30;&lt;BR /&gt; var itemHeader = query('.header', node)[0];&lt;BR /&gt; if (itemHeader) {&lt;BR /&gt; var contentBox = html.getContentBox(itemHeader);&lt;BR /&gt; var maxWidth = contentBox.w - tolerace;// width of header minus others width&lt;BR /&gt; if (maxWidth &amp;gt; 0) {&lt;BR /&gt; query('.header .item-title', node).style({&lt;BR /&gt; 'maxWidth': maxWidth + 'px'&lt;BR /&gt; });&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;_onShowCustomClick: function(){&lt;BR /&gt; html.setStyle(this.customFilterContainerNode, 'display', 'block');&lt;BR /&gt; html.setStyle(this.filterListContainerNode, 'display', 'none');&lt;/P&gt;&lt;P&gt;if(!this.layerChooserSelect){&lt;BR /&gt; var layerChooser = new CustomFeaturelayerChooserFromMap({&lt;BR /&gt; showLayerFromFeatureSet: false,&lt;BR /&gt; showTable: false,&lt;BR /&gt; onlyShowVisible: false,&lt;BR /&gt; createMapResponse: this.map.webMapResponse&lt;BR /&gt; });&lt;BR /&gt; this.layerChooserSelect = new LayerChooserFromMapWithDropbox({&lt;BR /&gt; layerChooser: layerChooser&lt;BR /&gt; });&lt;BR /&gt; this.layerChooserSelect.placeAt(this.layerSelectNode);&lt;/P&gt;&lt;P&gt;this.own(on(this.layerChooserSelect, 'selection-change', lang.hitch(this, this._onLayerChanged)));&lt;/P&gt;&lt;P&gt;this.layerChooserSelect.showLayerChooser();&lt;BR /&gt; }&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;_onLayerChanged: function(){&lt;BR /&gt; var item = this.layerChooserSelect.getSelectedItem();&lt;BR /&gt; if(!item){&lt;BR /&gt; return;&lt;BR /&gt; }&lt;BR /&gt; //nameTextBox&lt;BR /&gt; var layerInfo = item.layerInfo;&lt;BR /&gt; var layer = layerInfo.layerObject;&lt;BR /&gt; //filter&lt;BR /&gt; var layerDefinition = this._getLayerDefinitionForFilterDijit(layer);&lt;/P&gt;&lt;P&gt;if(!this.customFilter){&lt;BR /&gt; this.customFilter = new Filter({&lt;BR /&gt; enableAskForValues: false,&lt;BR /&gt; featureLayerId: layer.id&lt;BR /&gt; });&lt;BR /&gt; this.customFilter.placeAt(this.customFilterNode);&lt;BR /&gt; this.own(on(this.customFilter, 'change', lang.hitch(this, this._onCustomFilterChange)));&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;this.customFilter.build({&lt;BR /&gt; url: layer.url,&lt;BR /&gt; layerDefinition: layerDefinition&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;this.selectedLayer = layer;&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;_getLayerDefinitionForFilterDijit: function(layer){&lt;BR /&gt; var layerDefinition = null;&lt;/P&gt;&lt;P&gt;if(layer.declaredClass === 'esri.layers.FeatureLayer'){&lt;BR /&gt; layerDefinition = jimuUtils.getFeatureLayerDefinition(layer);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;if (!layerDefinition) {&lt;BR /&gt; layerDefinition = {&lt;BR /&gt; currentVersion: layer.currentVersion,&lt;BR /&gt; fields: lang.clone(layer.fields)&lt;BR /&gt; };&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;return layerDefinition;&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;_onBackToListClick: function(){&lt;BR /&gt; html.setStyle(this.customFilterContainerNode, 'display', 'none');&lt;BR /&gt; html.setStyle(this.filterListContainerNode, 'display', 'block');&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;_onCustomFilterToggle: function(isChecked){&lt;BR /&gt; if(!this.customFilter){&lt;BR /&gt; return;&lt;BR /&gt; }&lt;BR /&gt; if(!isChecked){&lt;BR /&gt; this.filterManager.applyWidgetFilter(this.selectedLayer.id, this.id + '-custom-filter', '1=1', true);&lt;BR /&gt; this._afterFilterApplied(this.selectedLayer.id);&lt;BR /&gt; }else{&lt;BR /&gt; this._applyCustomFilter();&lt;BR /&gt; }&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;_onCustomFilterChange: function(){&lt;BR /&gt; this._applyCustomFilter();&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;_applyCustomFilter: function(){&lt;BR /&gt; var filterJson = this.customFilter.toJson();&lt;BR /&gt; if(!filterJson || !this.customFilterToggleButton.checked || filterJson.parts.length === 0){&lt;BR /&gt; return;&lt;BR /&gt; }&lt;BR /&gt; this.filterManager.applyWidgetFilter(this.selectedLayer.id, this.id + '-custom-filter', filterJson.expr, true);&lt;BR /&gt; this._afterFilterApplied(this.selectedLayer.id);&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;destroy: function(){&lt;BR /&gt; query('.filter-item', this.filterList).forEach(function(node) {&lt;BR /&gt; delete node.filterParams;&lt;BR /&gt; delete node.expr;&lt;BR /&gt; });&lt;BR /&gt; if (this._store) {&lt;BR /&gt; for (var p in this._store) {&lt;BR /&gt; if (p) {&lt;BR /&gt; this.filterManager.applyWidgetFilter(p, this.id, "", null);&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; this.inherited(arguments);&lt;BR /&gt; }&lt;BR /&gt; });&lt;BR /&gt; });&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 07:58:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481565#M12673</guid>
      <dc:creator>ikbelkachbouri</dc:creator>
      <dc:date>2018-01-23T07:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter features on map in Web AppBuilder?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481566#M12674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much Robert . The filter widget query results is opened automatically in attribute table . &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 08:26:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481566#M12674</guid>
      <dc:creator>ikbelkachbouri</dc:creator>
      <dc:date>2018-01-23T08:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter features on map in Web AppBuilder?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481567#M12675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much Robert . &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 08:43:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481567#M12675</guid>
      <dc:creator>ikbelkachbouri</dc:creator>
      <dc:date>2018-01-23T08:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter features on map in Web AppBuilder?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481568#M12676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is a link to my filter widget . There is just the zoom after applying the filter .I want to draw result in the map (Selection ) like in query and create&amp;nbsp; feature result in legend and layer list . thank you for your help .&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 08:50:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481568#M12676</guid>
      <dc:creator>ikbelkachbouri</dc:creator>
      <dc:date>2018-01-23T08:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter features on map in Web AppBuilder?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481569#M12677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Hi Robert ,&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;this is a link to my filter widget . There is just the zoom after applying the filter .I want to draw result in the map (Selection ) like in query and create&amp;nbsp; feature result in legend and layer list . thank you for your help .&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;A class="link-titled" href="http://arcgis.graphtech-gis.com/apps/Widgetfilter/" title="http://arcgis.graphtech-gis.com/apps/Widgetfilter/"&gt;ArcGIS Web Application&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 08:50:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-filter-features-on-map-in-web-appbuilder/m-p/481569#M12677</guid>
      <dc:creator>ikbelkachbouri</dc:creator>
      <dc:date>2018-01-23T08:50:48Z</dc:date>
    </item>
  </channel>
</rss>

