<?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: Web AppBuilder - Limit Legend Items Based on Filters or Map Extent in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-limit-legend-items-based-on-filters/m-p/693360#M18328</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Jamal, I am hoping that you can help me a bit with the setup of your code.&amp;nbsp; This will be the first widget that I am attempting to customize.&amp;nbsp; You mention that you are using a "report" widget as the base for this code.&amp;nbsp; The only widget that I see is "ReportFeature", is this the widget that you used? I tried to just copy and paste the code you supplied into the Widget.js and comment out the "close" line, for now. However, when I click on it, it is still using the base code to ask for info that is related to ReportFeature.&amp;nbsp; I can go in and remove those questions and related js, but I am starting to think I am on the wrong path.&amp;nbsp; Can you help get me started?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Oct 2018 17:48:01 GMT</pubDate>
    <dc:creator>LisaT</dc:creator>
    <dc:date>2018-10-18T17:48:01Z</dc:date>
    <item>
      <title>Web AppBuilder - Limit Legend Items Based on Filters or Map Extent</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-limit-legend-items-based-on-filters/m-p/693349#M18317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to limit legend items to only those feature values in the&amp;nbsp;current extent in a Web AppBuilder (Developer's Edition 2.7) app? I currently have a service layer symbolized by unique values for my attribute of interest, though as I zoom to features, it would be nice to limit the legend to show only the unique values that are currently displayed (rather than having to browse through the many many unique values that are symbolized for the layer within the legend). I am using the filter widget to&amp;nbsp;filter and zoom to features based off of multiple expressions for unique values and&amp;nbsp;previous expression filters. Maybe limiting legend contents would need to be&amp;nbsp;configured within&amp;nbsp;the original map document, the service, the Portal web map, or in the application itself? I have attempted to achieve this functionality with the Legend and Layers widgets and have not had&amp;nbsp;any luck. I'm curious as to what steps I may need to take to establish this functionality.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Tess&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2018 22:47:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-limit-legend-items-based-on-filters/m-p/693349#M18317</guid>
      <dc:creator>TessOldemeyer</dc:creator>
      <dc:date>2018-04-10T22:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Web AppBuilder - Limit Legend Items Based on Filters or Map Extent</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-limit-legend-items-based-on-filters/m-p/693350#M18318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tess,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;This is something that several people have asked for but, it is not available. The amount of code would be large to make this happen as the extent change event would have to be listened for and then a query of each layer that is in the map extent would have to be done and then the Legends layerInfos would have to be updated and that would only remove a whole layer that is not inside the extent that would not even cover a unique val of a renderer that is not present in the legend (that is a whole other ball game).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2018 13:25:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-limit-legend-items-based-on-filters/m-p/693350#M18318</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-04-11T13:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Web AppBuilder - Limit Legend Items Based on Filters or Map Extent</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-limit-legend-items-based-on-filters/m-p/693351#M18319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good to know. I will look forward to this capability if it may become available in the future. Thanks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tess&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2018 14:18:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-limit-legend-items-based-on-filters/m-p/693351#M18319</guid>
      <dc:creator>TessOldemeyer</dc:creator>
      <dc:date>2018-04-11T14:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Web AppBuilder - Limit Legend Items Based on Filters or Map Extent</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-limit-legend-items-based-on-filters/m-p/693352#M18320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have found a way to do this, I haven't had any issues yet. I did this within a report widget . The onSubscribe function runs within the widgets onOpen function. The function to turn layers back on runs after report w/map is created. The DWclick topic runs&amp;nbsp; the doWork() function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;postCreate&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;inherited&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;arguments&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;own&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;topic&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;subscribe&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"DWclick"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; lang&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;hitch&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;doWork&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;own&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;topic&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;subscribe&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"FRclick"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; lang&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;hitch&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;finReport&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;



onOpen&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;onSubscribe&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token function"&gt;setTimeout&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;topic&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;publish&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'DWclick'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;6000&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;



doWork&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;//Create and print report&lt;/SPAN&gt;

&lt;SPAN class="token function"&gt;setTimeout&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;topic&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;publish&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'FRclick'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;3000&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;



onSubscribe&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; extent &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;extent
layerlist&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
LayerInfos&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getInstance&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;map&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;itemInfo&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; extent&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;then&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;layerInfosObject&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
layerInfosObject&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;traversal&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;layerInfo&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;layerInfo&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;_visible&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;layerInfo&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;title&lt;SPAN class="operator token"&gt;!==&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"QV_Utility"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt; layerInfo&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;title&lt;SPAN class="operator token"&gt;!==&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Ticket Symbols"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt; layerInfo&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;title&lt;SPAN class="operator token"&gt;!==&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Closed Tickets"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt; layerInfo&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;title&lt;SPAN class="operator token"&gt;!==&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Emergency Tickets"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt; layerInfo&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;title&lt;SPAN class="operator token"&gt;!==&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Open Tickets"&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; fullrl &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; layerInfo&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layerObject&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;url&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; qt &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;QueryTask&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fullrl&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; query &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;Query&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
query&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;returnGeometry &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;false&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; OIDfield &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; layerInfo&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layerObject&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;objectIdField&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
query&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;where &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"1=1"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
query&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;geometry &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; extent&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; countDef &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; layerInfo&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layerObject&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;_currentDef &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; qt&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;executeForCount&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;
query&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
lang&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;hitch&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;layerInfo&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layerObject&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;results&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;results&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;


&lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; results&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;results&lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;//console.log("-This layer:",layerInfo.title,"Is not currently in mapview and must be turned off, it has 0 or undefined# of records.",results);&lt;/SPAN&gt;
layerInfo&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setTopLayerVisible&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;false&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
layerlist&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;push&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;layerInfo&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;title&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;

&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;//this._clearLayers()&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;//this.showLayers();&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;//console.log(layerlist);&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layerlist&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; layerlist&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layerlist&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
PanelManager&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getInstance&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;closePanel&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'_31_panel'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;

finReport&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;layerlist&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;//console.log("FINREPORT");&lt;/SPAN&gt;
console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;log&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"FINREPORT"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layerlist&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; 
LayerInfos&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getInstance&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;map&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;itemInfo&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;then&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;layerInfosObject&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
layerInfosObject&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;traversal&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;layerInfo&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layerlist&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;includes&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;layerInfo&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;title&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;//console.log(layerInfo.title, "will be turned on now");&lt;/SPAN&gt;
layerInfo&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setTopLayerVisible&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;true&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;

‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:10:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-limit-legend-items-based-on-filters/m-p/693352#M18320</guid>
      <dc:creator>JamalWest2</dc:creator>
      <dc:date>2021-12-12T05:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Web AppBuilder - Limit Legend Items Based on Filters or Map Extent</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-limit-legend-items-based-on-filters/m-p/693353#M18321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much for this info. I added this code to the widget.js file in a&amp;nbsp;Report dijit widget, and I am hiving issues with mainfest.json errors from the widget. As I have not yet spent much time configuring custom widgets, these errors could be from multiple sources. Would you mind making this widget folder available to download?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 15:58:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-limit-legend-items-based-on-filters/m-p/693353#M18321</guid>
      <dc:creator>TessOldemeyer</dc:creator>
      <dc:date>2018-04-18T15:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Web AppBuilder - Limit Legend Items Based on Filters or Map Extent</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-limit-legend-items-based-on-filters/m-p/693354#M18322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;None of the other files within the folder would be affected by this change. The only issue you may have is with this line.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;PanelManager.getInstance().closePanel('_31_panel');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;You may want to comment this line out as it is not likely a widget Id that is&amp;nbsp;utilized in your app. Also be sure to add dojo/topic module to your require/function section at the top of widget.js.&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE style="color: #eaeaea; background: 0px 0px;"&gt;&lt;SPAN class="" style="color: #7aa6da;"&gt;require&lt;/SPAN&gt;&lt;SPAN class="" style="color: #eaeaea;"&gt;([&lt;/SPAN&gt;&lt;SPAN class="" style="color: #b9ca4a;"&gt;"dojo/topic"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #eaeaea;"&gt;],&lt;/SPAN&gt; &lt;SPAN class="" style="color: #c397d8; font-weight: bold;"&gt;function&lt;/SPAN&gt;&lt;SPAN class="" style="color: #eaeaea;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #7aa6da;"&gt;topic&lt;/SPAN&gt;&lt;SPAN class="" style="color: #eaeaea;"&gt;){&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt; Can you post your error here?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I attached my widget.js file below. You can check it out and replace/add sections to your own widget.js where necessary.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 17:39:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-limit-legend-items-based-on-filters/m-p/693354#M18322</guid>
      <dc:creator>JamalWest2</dc:creator>
      <dc:date>2018-04-18T17:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Web AppBuilder - Limit Legend Items Based on Filters or Map Extent</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-limit-legend-items-based-on-filters/m-p/693355#M18323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again for all of your help Jamal. It turns out I had a syntax error in the manifest.json file that I was able to resolve, so that error is no longer showing up when I start the WAB sartup.bat file. However,&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;I am currently getting a 'create widget error' after I add the widget via WAB and try to open it.&amp;nbsp;&lt;/SPAN&gt;&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/402328_pastedImage_1.png" style="width: 620px; height: 314px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached&amp;nbsp;my current 'Report' widget folder. If you&amp;nbsp;can provide any recommendations&amp;nbsp;on where I might need to make modifications, they will be helpful. I apologize that I am new to this type of configuration, and I may be missing some very obvious errors... &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Tess&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 20:22:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-limit-legend-items-based-on-filters/m-p/693355#M18323</guid>
      <dc:creator>TessOldemeyer</dc:creator>
      <dc:date>2018-04-18T20:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Web AppBuilder - Limit Legend Items Based on Filters or Map Extent</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-limit-legend-items-based-on-filters/m-p/693356#M18324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You'll have to look at the browsers console to see what the errors are. There are a number of reasons that a widget may not open.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 20:31:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-limit-legend-items-based-on-filters/m-p/693356#M18324</guid>
      <dc:creator>JamalWest2</dc:creator>
      <dc:date>2018-04-18T20:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Web AppBuilder - Limit Legend Items Based on Filters or Map Extent</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-limit-legend-items-based-on-filters/m-p/693357#M18325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. This is super helpful and good to go through. This is pretty big and messy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;panel [widgets_Report_Widget_32_panel] created.&lt;BR /&gt;17:00:01.993 Widget.js?wab_dv=2.7:2 Uncaught SyntaxError: Unexpected identifier&lt;BR /&gt;17:00:02.014 WidgetManager.js?wab_dv=2.7:116 create [widgets/Report/Widget] error:TypeError: clazz is not a constructor&lt;BR /&gt;&lt;SPAN&gt; at Object.createWidget (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fmydevurl%3A3344%2Fwebappbuilder%2Fapps%2F2%2Fjimu.js%2FWidgetManager.js%3Fwab_dv%3D2.7%3A320%3A16" rel="nofollow" target="_blank"&gt;https://mydevurl:3344/webappbuilder/apps/2/jimu.js/WidgetManager.js?wab_dv=2.7:320:16&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at Object.&amp;lt;anonymous&amp;gt; (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fmydevurl%3A3344%2Fwebappbuilder%2Fapps%2F2%2Fjimu.js%2FWidgetManager.js%3Fwab_dv%3D2.7%3A112%3A35" rel="nofollow" target="_blank"&gt;https://mydevurl:3344/webappbuilder/apps/2/jimu.js/WidgetManager.js?wab_dv=2.7:112:35&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjsdev.arcgis.com%2F3.23%2Finit.js%3A63%3A337" rel="nofollow" target="_blank"&gt;https://jsdev.arcgis.com/3.23/init.js:63:337&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; at h (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjsdev.arcgis.com%2F3.23%2Finit.js%3A107%3A277" rel="nofollow" target="_blank"&gt;https://jsdev.arcgis.com/3.23/init.js:107:277&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at q (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjsdev.arcgis.com%2F3.23%2Finit.js%3A107%3A203" rel="nofollow" target="_blank"&gt;https://jsdev.arcgis.com/3.23/init.js:107:203&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at d.resolve (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjsdev.arcgis.com%2F3.23%2Finit.js%3A109%3A280" rel="nofollow" target="_blank"&gt;https://jsdev.arcgis.com/3.23/init.js:109:280&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at Object.&amp;lt;anonymous&amp;gt; (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fmydevurl%3A3344%2Fwebappbuilder%2Fapps%2F2%2Fjimu.js%2FWidgetManager.js%3Fwab_dv%3D2.7%3A189%3A13" rel="nofollow" target="_blank"&gt;https://mydevurl:3344/webappbuilder/apps/2/jimu.js/WidgetManager.js?wab_dv=2.7:189:13&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjsdev.arcgis.com%2F3.23%2Finit.js%3A63%3A337" rel="nofollow" target="_blank"&gt;https://jsdev.arcgis.com/3.23/init.js:63:337&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; at h (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjsdev.arcgis.com%2F3.23%2Finit.js%3A107%3A277" rel="nofollow" target="_blank"&gt;https://jsdev.arcgis.com/3.23/init.js:107:277&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at q (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjsdev.arcgis.com%2F3.23%2Finit.js%3A107%3A203" rel="nofollow" target="_blank"&gt;https://jsdev.arcgis.com/3.23/init.js:107:203&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;Widget.js?wab_dv=2.7:127 Uncaught TypeError: Cannot read property 'name' of undefined&lt;BR /&gt; at Object._onWidgetCreation (VM3435 Widget.js:127)&lt;BR /&gt; at Object.&amp;lt;anonymous&amp;gt; (VM2999 init.js:63)&lt;BR /&gt; at Object.c [as onwidget-created] (VM2999 init.js:119)&lt;BR /&gt; at Function.h.emit (VM2999 init.js:124)&lt;BR /&gt; at Function.h.emit (VM2999 init.js:125)&lt;BR /&gt; at Object.emit (VM2999 init.js:117)&lt;BR /&gt; at Object.&amp;lt;anonymous&amp;gt; (VM3326 WidgetManager.js:131)&lt;BR /&gt; at VM2999 init.js:63&lt;BR /&gt; &lt;BR /&gt;init.js:114 TypeError: clazz is not a constructor&lt;BR /&gt; at Object.createWidget (VM3326 WidgetManager.js:320)&lt;BR /&gt; at Object.&amp;lt;anonymous&amp;gt; (VM3326 WidgetManager.js:112)&lt;BR /&gt; at VM2999 init.js:63&lt;BR /&gt; at h (VM2999 init.js:107)&lt;BR /&gt; at q (VM2999 init.js:107)&lt;BR /&gt; at d.resolve (VM2999 init.js:109)&lt;BR /&gt; at Object.&amp;lt;anonymous&amp;gt; (VM3326 WidgetManager.js:189)&lt;BR /&gt; at VM2999 init.js:63&lt;BR /&gt; at h (VM2999 init.js:107)&lt;BR /&gt; at q (VM2999 init.js:107) "TypeError: clazz is not a constructor&lt;BR /&gt;&lt;SPAN&gt; at Object.createWidget (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fmydevurl%3A3344%2Fwebappbuilder%2Fapps%2F2%2Fjimu.js%2FWidgetManager.js%3Fwab_dv%3D2.7%3A320%3A16" rel="nofollow" target="_blank"&gt;https://mydevurl:3344/webappbuilder/apps/2/jimu.js/WidgetManager.js?wab_dv=2.7:320:16&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at Object.&amp;lt;anonymous&amp;gt; (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fmydevurl%3A3344%2Fwebappbuilder%2Fapps%2F2%2Fjimu.js%2FWidgetManager.js%3Fwab_dv%3D2.7%3A112%3A35" rel="nofollow" target="_blank"&gt;https://mydevurl:3344/webappbuilder/apps/2/jimu.js/WidgetManager.js?wab_dv=2.7:112:35&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjsdev.arcgis.com%2F3.23%2Finit.js%3A63%3A337" rel="nofollow" target="_blank"&gt;https://jsdev.arcgis.com/3.23/init.js:63:337&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; at h (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjsdev.arcgis.com%2F3.23%2Finit.js%3A107%3A277" rel="nofollow" target="_blank"&gt;https://jsdev.arcgis.com/3.23/init.js:107:277&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at q (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjsdev.arcgis.com%2F3.23%2Finit.js%3A107%3A203" rel="nofollow" target="_blank"&gt;https://jsdev.arcgis.com/3.23/init.js:107:203&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at d.resolve (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjsdev.arcgis.com%2F3.23%2Finit.js%3A109%3A280" rel="nofollow" target="_blank"&gt;https://jsdev.arcgis.com/3.23/init.js:109:280&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at Object.&amp;lt;anonymous&amp;gt; (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fmydevurl%3A3344%2Fwebappbuilder%2Fapps%2F2%2Fjimu.js%2FWidgetManager.js%3Fwab_dv%3D2.7%3A189%3A13" rel="nofollow" target="_blank"&gt;https://mydevurl:3344/webappbuilder/apps/2/jimu.js/WidgetManager.js?wab_dv=2.7:189:13&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjsdev.arcgis.com%2F3.23%2Finit.js%3A63%3A337" rel="nofollow" target="_blank"&gt;https://jsdev.arcgis.com/3.23/init.js:63:337&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; at h (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjsdev.arcgis.com%2F3.23%2Finit.js%3A107%3A277" rel="nofollow" target="_blank"&gt;https://jsdev.arcgis.com/3.23/init.js:107:277&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at q (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjsdev.arcgis.com%2F3.23%2Finit.js%3A107%3A203" rel="nofollow" target="_blank"&gt;https://jsdev.arcgis.com/3.23/init.js:107:203&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt; ----------------------------------------&lt;BR /&gt;&lt;SPAN&gt; rejected at a (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjsdev.arcgis.com%2F3.23%2Finit.js%3A108%3A174" rel="nofollow" target="_blank"&gt;https://jsdev.arcgis.com/3.23/init.js:108:174&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at h (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjsdev.arcgis.com%2F3.23%2Finit.js%3A107%3A450" rel="nofollow" target="_blank"&gt;https://jsdev.arcgis.com/3.23/init.js:107:450&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at q (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjsdev.arcgis.com%2F3.23%2Finit.js%3A107%3A203" rel="nofollow" target="_blank"&gt;https://jsdev.arcgis.com/3.23/init.js:107:203&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at d.l.reject (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjsdev.arcgis.com%2F3.23%2Finit.js%3A109%3A488" rel="nofollow" target="_blank"&gt;https://jsdev.arcgis.com/3.23/init.js:109:488&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at Object.&amp;lt;anonymous&amp;gt; (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fmydevurl%3A3344%2Fwebappbuilder%2Fapps%2F2%2Fjimu.js%2FWidgetManager.js%3Fwab_dv%3D2.7%3A125%3A21" rel="nofollow" target="_blank"&gt;https://mydevurl:3344/webappbuilder/apps/2/jimu.js/WidgetManager.js?wab_dv=2.7:125:21&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjsdev.arcgis.com%2F3.23%2Finit.js%3A63%3A337" rel="nofollow" target="_blank"&gt;https://jsdev.arcgis.com/3.23/init.js:63:337&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; at h (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjsdev.arcgis.com%2F3.23%2Finit.js%3A107%3A277" rel="nofollow" target="_blank"&gt;https://jsdev.arcgis.com/3.23/init.js:107:277&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at q (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjsdev.arcgis.com%2F3.23%2Finit.js%3A107%3A203" rel="nofollow" target="_blank"&gt;https://jsdev.arcgis.com/3.23/init.js:107:203&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at d.resolve (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjsdev.arcgis.com%2F3.23%2Finit.js%3A109%3A280" rel="nofollow" target="_blank"&gt;https://jsdev.arcgis.com/3.23/init.js:109:280&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at Object.&amp;lt;anonymous&amp;gt; (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fmydevurl%3A3344%2Fwebappbuilder%2Fapps%2F2%2Fjimu.js%2FWidgetManager.js%3Fwab_dv%3D2.7%3A189%3A13" rel="nofollow" target="_blank"&gt;https://mydevurl:3344/webappbuilder/apps/2/jimu.js/WidgetManager.js?wab_dv=2.7:189:13&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt; ----------------------------------------&lt;BR /&gt;Error&lt;BR /&gt;&lt;SPAN&gt; at d.then.b.then (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjsdev.arcgis.com%2F3.23%2Finit.js%3A110%3A97" rel="nofollow" target="_blank"&gt;https://jsdev.arcgis.com/3.23/init.js:110:97&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at Object.&amp;lt;anonymous&amp;gt; (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fmydevurl%3A3344%2Fwebappbuilder%2Fapps%2F2%2Fjimu.js%2FBaseWidgetPanel.js%3Fwab_dv%3D2.7%3A76%3A53" rel="nofollow" target="_blank"&gt;https://mydevurl:3344/webappbuilder/apps/2/jimu.js/BaseWidgetPanel.js?wab_dv=2.7:76:53&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at Object.forEach (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjsdev.arcgis.com%2F3.23%2Finit.js%3A70%3A486" rel="nofollow" target="_blank"&gt;https://jsdev.arcgis.com/3.23/init.js:70:486&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at Object.loadAllWidgetsInOrder (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fmydevurl%3A3344%2Fwebappbuilder%2Fapps%2F2%2Fjimu.js%2FBaseWidgetPanel.js%3Fwab_dv%3D2.7%3A66%3A13" rel="nofollow" target="_blank"&gt;https://mydevurl:3344/webappbuilder/apps/2/jimu.js/BaseWidgetPanel.js?wab_dv=2.7:66:13&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at Object.startup (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fmydevurl%3A3344%2Fwebappbuilder%2Fapps%2F2%2Fjimu.js%2FBaseWidgetPanel.js%3Fwab_dv%3D2.7%3A55%3A12" rel="nofollow" target="_blank"&gt;https://mydevurl:3344/webappbuilder/apps/2/jimu.js/BaseWidgetPanel.js?wab_dv=2.7:55:12&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at Object.g (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjsdev.arcgis.com%2F3.23%2Finit.js%3A197%3A400" rel="nofollow" target="_blank"&gt;https://jsdev.arcgis.com/3.23/init.js:197:400&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at Object.startup (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fmydevurl%3A3344%2Fwebappbuilder%2Fapps%2F2%2Fthemes%2FDartTheme%2Fpanels%2FDartPanel%2FPanel.js%3Fwab_dv%3D2.7%3A56%3A14" rel="nofollow" target="_blank"&gt;https://mydevurl:3344/webappbuilder/apps/2/themes/DartTheme/panels/DartPanel/Panel.js?wab_dv=2.7:56:14&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at Object.openPanel (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fmydevurl%3A3344%2Fwebappbuilder%2Fapps%2F2%2Fjimu.js%2FPanelManager.js%3Fwab_dv%3D2.7%3A151%3A17" rel="nofollow" target="_blank"&gt;https://mydevurl:3344/webappbuilder/apps/2/jimu.js/PanelManager.js?wab_dv=2.7:151:17&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at Object.&amp;lt;anonymous&amp;gt; (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fmydevurl%3A3344%2Fwebappbuilder%2Fapps%2F2%2Fjimu.js%2FPanelManager.js%3Fwab_dv%3D2.7%3A93%3A16" rel="nofollow" target="_blank"&gt;https://mydevurl:3344/webappbuilder/apps/2/jimu.js/PanelManager.js?wab_dv=2.7:93:16&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjsdev.arcgis.com%2F3.23%2Finit.js%3A63%3A337" rel="nofollow" target="_blank"&gt;https://jsdev.arcgis.com/3.23/init.js:63:337&lt;/A&gt;&lt;SPAN&gt;" &lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;Widget.js?wab_dv=2.7:155 TypeError: Cannot read property 'nodeType' of null&lt;BR /&gt; at Object.getComputedStyle (VM2999 init.js:162)&lt;BR /&gt; at Object.h.getContentBox (VM2999 init.js:179)&lt;BR /&gt; at Object._resizeController (VM3435 Widget.js:145)&lt;BR /&gt; at VM2999 init.js:63&lt;BR /&gt;17:07:47.215 Widget.js?wab_dv=2.7:155 TypeError: Cannot read property 'nodeType' of null&lt;BR /&gt; at Object.getComputedStyle (VM2999 init.js:162)&lt;BR /&gt; at Object.h.getContentBox (VM2999 init.js:179)&lt;BR /&gt; at Object._resizeController (VM3435 Widget.js:145)&lt;BR /&gt; at VM2999 init.js:63&lt;BR /&gt;17:07:53.986 Widget.js?wab_dv=2.7:155 TypeError: Cannot read property 'nodeType' of null&lt;BR /&gt; at Object.getComputedStyle (VM2999 init.js:162)&lt;BR /&gt; at Object.h.getContentBox (VM2999 init.js:179)&lt;BR /&gt; at Object._resizeController (VM3435 Widget.js:145)&lt;BR /&gt; at VM2999 init.js:63&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 23:16:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-limit-legend-items-based-on-filters/m-p/693357#M18325</guid>
      <dc:creator>TessOldemeyer</dc:creator>
      <dc:date>2018-04-18T23:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Web AppBuilder - Limit Legend Items Based on Filters or Map Extent</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-limit-legend-items-based-on-filters/m-p/693358#M18326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would go through your code and make sure every section is properly closed. That is usually the issue with clazz constructor. You should be able to click the rrror and see the exact line where it has an issue. Also the last error tells you exactly what file and line the problem is on...&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Widget.js?&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;wab_dv=2.7:155 TypeError: Cannot read property 'nodeType' of null&amp;nbsp;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;line 155 of Widget.js. Use console.log statements to track your codes workflow.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 21:22:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-limit-legend-items-based-on-filters/m-p/693358#M18326</guid>
      <dc:creator>JamalWest2</dc:creator>
      <dc:date>2018-04-19T21:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Web AppBuilder - Limit Legend Items Based on Filters or Map Extent</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-limit-legend-items-based-on-filters/m-p/693359#M18327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 23:15:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-limit-legend-items-based-on-filters/m-p/693359#M18327</guid>
      <dc:creator>TessOldemeyer</dc:creator>
      <dc:date>2018-04-19T23:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Web AppBuilder - Limit Legend Items Based on Filters or Map Extent</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-limit-legend-items-based-on-filters/m-p/693360#M18328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Jamal, I am hoping that you can help me a bit with the setup of your code.&amp;nbsp; This will be the first widget that I am attempting to customize.&amp;nbsp; You mention that you are using a "report" widget as the base for this code.&amp;nbsp; The only widget that I see is "ReportFeature", is this the widget that you used? I tried to just copy and paste the code you supplied into the Widget.js and comment out the "close" line, for now. However, when I click on it, it is still using the base code to ask for info that is related to ReportFeature.&amp;nbsp; I can go in and remove those questions and related js, but I am starting to think I am on the wrong path.&amp;nbsp; Can you help get me started?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 17:48:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-limit-legend-items-based-on-filters/m-p/693360#M18328</guid>
      <dc:creator>LisaT</dc:creator>
      <dc:date>2018-10-18T17:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Web AppBuilder - Limit Legend Items Based on Filters or Map Extent</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-limit-legend-items-based-on-filters/m-p/693361#M18329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are you attempting to do exactly? A custom report or a custom print widget?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 21:31:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-limit-legend-items-based-on-filters/m-p/693361#M18329</guid>
      <dc:creator>JamalWest2</dc:creator>
      <dc:date>2018-10-18T21:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Web AppBuilder - Limit Legend Items Based on Filters or Map Extent</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-limit-legend-items-based-on-filters/m-p/693362#M18330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I am trying to do is make a large overall map.&amp;nbsp;I have a few US-wide layers, such as endangered wildlife.&amp;nbsp; My ultimate goal would be to put a bookmark and, when clicked, zoom into an area.&amp;nbsp; I would then like the map legend to only show the endangered wildlife symbols that are in the are that I zoom into.&amp;nbsp; It would also be great if it could print this way.&amp;nbsp; I would think that I should be able to "re-set extent" of the map so that only a specific area is selected and thus the print and legend would only show that area, but I haven't found it yet.&amp;nbsp; It seems that your tool will help to take care of the in-application legend?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 21:48:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-limit-legend-items-based-on-filters/m-p/693362#M18330</guid>
      <dc:creator>LisaT</dc:creator>
      <dc:date>2018-10-18T21:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Web AppBuilder - Limit Legend Items Based on Filters or Map Extent</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-limit-legend-items-based-on-filters/m-p/693363#M18331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;The bookmark widget does this. You can add bookmarks that take you to an exact extent that you save. Also the newer versions of print and legend widget already use the map extent as a filter. So you don't really need to use this function.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 22:36:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-limit-legend-items-based-on-filters/m-p/693363#M18331</guid>
      <dc:creator>JamalWest2</dc:creator>
      <dc:date>2018-10-18T22:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Web AppBuilder - Limit Legend Items Based on Filters or Map Extent</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-limit-legend-items-based-on-filters/m-p/693364#M18332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I may be missing something.&amp;nbsp; I have the newest version, 10.6.1, and can't get the map to only show the symbols in the visible extent. I want something similar to the checkbox in ArcPro "Format Legend Item" where you can check the box to "Only Show features visible in the map extent".&amp;nbsp; In my case, the extent of the underlying map is set to the whole US. There are LOTS of endangered wildlife symbols in the US extent.&amp;nbsp; If I zoom in to a city,&amp;nbsp;I may only see 3 symbols. In that case, I only want 3 symbols on my legend, but ALL of the symbols still print and show in the legend because the underlying map extend is still the whole US.&amp;nbsp; I have configured the legend and&amp;nbsp;checked/unchecked&amp;nbsp;"Respect current map scale" and "Auto Update" and&amp;nbsp;these 2 settings do not appear to make a difference on the legend.&amp;nbsp; I was thinking that your tool fixes it so that only the 3 symbols print?&amp;nbsp; &amp;nbsp;Am I misunderstanding the functionality? Or, am I experiencing incorrect results with 10.6.1? Please let me know your thoughts on this so that I can attempt to troubleshoot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally, if I am zoomed into an area without ANY endangered species, I would like the layer to completely disappear or grey out on the legend (and print).&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2018 23:39:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-limit-legend-items-based-on-filters/m-p/693364#M18332</guid>
      <dc:creator>LisaT</dc:creator>
      <dc:date>2018-10-22T23:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Web AppBuilder - Limit Legend Items Based on Filters or Map Extent</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-limit-legend-items-based-on-filters/m-p/1362795#M23322</link>
      <description>&lt;P&gt;Has there been any updates to this issue?&amp;nbsp; I'm having the same problem which I have a large study area with numerous smaller subset bookmarks.&amp;nbsp; I would love an easy solution that as my web app moves through the bookmarks my legend changes to only show what is visible in each extent.&amp;nbsp; &amp;nbsp; So far I have not found a way to do this.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2023 20:18:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-limit-legend-items-based-on-filters/m-p/1362795#M23322</guid>
      <dc:creator>Charlie_Kaufman</dc:creator>
      <dc:date>2023-12-19T20:18:17Z</dc:date>
    </item>
  </channel>
</rss>

