<?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 Modify Select Widget WAB in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/modify-select-widget-wab/m-p/337961#M8943</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Currently when I open the select widget in web appbuilder the features currently set for selection match the layers I have check on in my layer list. I would like to modify the select widget code so that all the layers are unchecked by default and not tied to items checked on/off in the layer list.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Aug 2016 18:17:48 GMT</pubDate>
    <dc:creator>JoelEdgar</dc:creator>
    <dc:date>2016-08-08T18:17:48Z</dc:date>
    <item>
      <title>Modify Select Widget WAB</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/modify-select-widget-wab/m-p/337961#M8943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Currently when I open the select widget in web appbuilder the features currently set for selection match the layers I have check on in my layer list. I would like to modify the select widget code so that all the layers are unchecked by default and not tied to items checked on/off in the layer list.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2016 18:17:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/modify-select-widget-wab/m-p/337961#M8943</guid>
      <dc:creator>JoelEdgar</dc:creator>
      <dc:date>2016-08-08T18:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Select Widget WAB</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/modify-select-widget-wab/m-p/337962#M8944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you are using WAB Dev edition then you can edit the select Widget.js in the _initLayers function (line 13):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;_initLayers: function(layerInfoArray) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.layerInfoArray = layerInfoArray;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.layerItems = [];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.selectionSymbols = {};

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; html.empty(this.layerItemsNode);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; array.forEach(layerInfoArray, lang.hitch(this, function(layerInfo) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var visible = layerInfo.isShowInMap() &amp;amp;&amp;amp; layerInfo.isInScale();

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var item = new SelectableLayerItem({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layerInfo: layerInfo,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; checked: false,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layerVisible: &lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;visible&lt;/SPAN&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; folderUrl: this.folderUrl,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; allowExport: this.config ? this.config.allowExport : false,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map: this.map,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nls: this.nls
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:00:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/modify-select-widget-wab/m-p/337962#M8944</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T16:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Select Widget WAB</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/modify-select-widget-wab/m-p/337963#M8945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;I need 1 layer checked by&amp;nbsp;default. &amp;nbsp;How do I do it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 15:17:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/modify-select-widget-wab/m-p/337963#M8945</guid>
      <dc:creator>helenchu</dc:creator>
      <dc:date>2016-08-16T15:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Select Widget WAB</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/modify-select-widget-wab/m-p/337964#M8946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Helen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Check the layerInfo to see if it is the layer that you need and if so don't change the SelectableLayerItem checked to false.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 15:54:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/modify-select-widget-wab/m-p/337964#M8946</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-08-16T15:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Select Widget WAB</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/modify-select-widget-wab/m-p/337965#M8947</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 just tried this line of code to see how it's like and already it gives me error : "Expected identifier or string".&lt;/P&gt;&lt;P&gt;Could you please tell me what is wrong with my codes&amp;nbsp;? &amp;nbsp;&lt;/P&gt;&lt;P&gt;Much appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_initLayers: function(layerInfoArray) {&lt;BR /&gt; this.layerInfoArray = layerInfoArray;&lt;BR /&gt; this.layerItems = [];&lt;BR /&gt; this.selectionSymbols = {};&lt;/P&gt;&lt;P&gt;html.empty(this.layerItemsNode);&lt;/P&gt;&lt;P&gt;array.forEach(layerInfoArray, lang.hitch(this, function(layerInfo) {&lt;BR /&gt; var visible = layerInfo.isShowInMap() &amp;amp;&amp;amp; layerInfo.isInScale();&lt;/P&gt;&lt;P&gt;var item = new SelectableLayerItem({&lt;BR /&gt; layerInfo: layerInfo,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;if (item.layerName ==='Accounts'){&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; checked: visible;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; }&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; else {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; checked: false;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; }&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;layerVisible: visible,&lt;BR /&gt; folderUrl: this.folderUrl,&lt;BR /&gt; allowExport: this.config ? this.config.allowExport : false,&lt;BR /&gt; map: this.map,&lt;BR /&gt; nls: this.nls&lt;BR /&gt; });&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2016 18:35:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/modify-select-widget-wab/m-p/337965#M8947</guid>
      <dc:creator>helenchu</dc:creator>
      <dc:date>2016-08-17T18:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Select Widget WAB</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/modify-select-widget-wab/m-p/337966#M8948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Helen,&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp; You should not have an if statement inside a objects constructor like you do now. You need to do your if statement before the constructor for the layer selection object.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2016 21:16:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/modify-select-widget-wab/m-p/337966#M8948</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-08-17T21:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Select Widget WAB</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/modify-select-widget-wab/m-p/337967#M8949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got it. &amp;nbsp;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2016 13:14:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/modify-select-widget-wab/m-p/337967#M8949</guid>
      <dc:creator>helenchu</dc:creator>
      <dc:date>2016-08-18T13:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Select Widget WAB</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/modify-select-widget-wab/m-p/337968#M8950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a WAB map. when the mapservice is not symbolized by a value the select widget shows the selection&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/370382_pastedImage_1.png" style="width: 620px; height: 432px;" /&gt;&lt;/P&gt;&lt;P&gt;when a map service is symbolized by a value the selection does not show. Is this a bug? The popup shows that I have a selection.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/370383_pastedImage_2.png" style="width: 620px; height: 324px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2017 16:37:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/modify-select-widget-wab/m-p/337968#M8950</guid>
      <dc:creator>GeorgeKatsambas</dc:creator>
      <dc:date>2017-09-08T16:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Select Widget WAB</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/modify-select-widget-wab/m-p/337969#M8951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have not seen that one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2017 20:46:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/modify-select-widget-wab/m-p/337969#M8951</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-09-08T20:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Select Widget WAB</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/modify-select-widget-wab/m-p/337970#M8952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anybody know why when I use the select widget in the fold-able theme wab 2.5 the selection does not show now?&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/370685_pastedImage_1.png" style="width: 620px; height: 141px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2017 21:27:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/modify-select-widget-wab/m-p/337970#M8952</guid>
      <dc:creator>GeorgeKatsambas</dc:creator>
      <dc:date>2017-09-11T21:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Select Widget WAB</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/modify-select-widget-wab/m-p/337971#M8953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having a lot of quirkiness issues with Wab 2.5 lately, select widget selects but does not highlight the selection, query widget added for a second time the query is performed but the query will not draw? All this happened after I upgraded to windows 10, something has become corrupted or something in windows 10 I have no idea. Should I uninstall/delete v 2.5 and try to install again?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 18:50:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/modify-select-widget-wab/m-p/337971#M8953</guid>
      <dc:creator>GeorgeKatsambas</dc:creator>
      <dc:date>2017-09-13T18:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Select Widget WAB</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/modify-select-widget-wab/m-p/337972#M8954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;George I would definitely give that a try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 18:58:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/modify-select-widget-wab/m-p/337972#M8954</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-09-13T18:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Select Widget WAB</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/modify-select-widget-wab/m-p/337973#M8955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok downloading WAB again did not fix it, but after closely looking at map services where the selection does work and where it does I noticed that if I publish a feature class with object id and shape turned off in field properties that affected it. I turned on both and republished, no idea that was affecting it but now it all works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 13:55:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/modify-select-widget-wab/m-p/337973#M8955</guid>
      <dc:creator>GeorgeKatsambas</dc:creator>
      <dc:date>2017-09-14T13:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Select Widget WAB</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/modify-select-widget-wab/m-p/337974#M8956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just curious, does anyone know what area of code needs to be modified to select features that are not zoom scale dependent?&amp;nbsp; The way this widget is currently setup is to only select features that are in view, but once you zoom out, you can't select anything.&amp;nbsp; The layer grey's out (I've solved that issue) but you still cant select anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2018 17:30:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/modify-select-widget-wab/m-p/337974#M8956</guid>
      <dc:creator>WalidAlmasri1</dc:creator>
      <dc:date>2018-10-09T17:30:05Z</dc:date>
    </item>
  </channel>
</rss>

