<?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: Run Filter in background executing programmatically an expession in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/run-filter-in-background-executing/m-p/813087#M6662</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lefteris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Sure you will need to use the appConfig var (this.appConfig) and loop through it to find the &lt;EM&gt;filter widget&lt;/EM&gt; and then look at the &lt;EM&gt;config&lt;/EM&gt; property and then the &lt;EM&gt;filters&lt;/EM&gt; property to get the &lt;EM&gt;layerId&lt;/EM&gt; and &lt;EM&gt;filter.expr&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Aug 2016 14:30:19 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2016-08-25T14:30:19Z</dc:date>
    <item>
      <title>Run Filter in background executing programmatically an expession</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/run-filter-in-background-executing/m-p/813084#M6659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As the tile says, I'd like to run the filter out of view in the background and perform a query on an expression without user's action. How can execute in the background the expression defined in the config_Filter.json?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2016 22:59:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/run-filter-in-background-executing/m-p/813084#M6659</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2016-08-22T22:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Run Filter in background executing programmatically an expession</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/run-filter-in-background-executing/m-p/813085#M6660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lefteris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Sure just add the FilterManager require to what ever js code you want (like MapManager) and use a line like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FilterManager.getInstance().applyWidgetFilter(layerId, null, "your sql expression");&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 14:06:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/run-filter-in-background-executing/m-p/813085#M6660</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-08-23T14:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Run Filter in background executing programmatically an expession</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/run-filter-in-background-executing/m-p/813086#M6661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Robert. It works. However, since I am using tens of custom config.json files that are called in the url, ideally I would like to use something like the&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;FilterManager.getInstance() (no sql statement) in AT (for example) and let the custom config.json call the custom config_Filter.json for the SQL expression (as it is already set up). Can it be done?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 22:15:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/run-filter-in-background-executing/m-p/813086#M6661</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2016-08-24T22:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Run Filter in background executing programmatically an expession</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/run-filter-in-background-executing/m-p/813087#M6662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lefteris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Sure you will need to use the appConfig var (this.appConfig) and loop through it to find the &lt;EM&gt;filter widget&lt;/EM&gt; and then look at the &lt;EM&gt;config&lt;/EM&gt; property and then the &lt;EM&gt;filters&lt;/EM&gt; property to get the &lt;EM&gt;layerId&lt;/EM&gt; and &lt;EM&gt;filter.expr&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2016 14:30:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/run-filter-in-background-executing/m-p/813087#M6662</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-08-25T14:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Run Filter in background executing programmatically an expession</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/run-filter-in-background-executing/m-p/813088#M6663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, if the widget is already openAtStart (true) and not visible, I can use this method to call an instance of the widget and execute the filter operation based on the custom_Filter?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;require(["jimu/WidgetManager"], function(WidgetManager) { &lt;BR /&gt; var wm = WidgetManager.openWidget("Filter");&lt;BR /&gt;});&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 17:03:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/run-filter-in-background-executing/m-p/813088#M6663</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2016-08-29T17:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Run Filter in background executing programmatically an expession</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/run-filter-in-background-executing/m-p/813089#M6664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lefteris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;No the widget does not have to be openAtStart or visible as the only thing you will be using from the widget itself is the widget config files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 17:12:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/run-filter-in-background-executing/m-p/813089#M6664</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-08-29T17:12:58Z</dc:date>
    </item>
  </channel>
</rss>

