<?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: eSearch: get value of currently selected search layer in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-get-value-of-currently-selected-search/m-p/1006968#M14286</link>
    <description>&lt;P&gt;I think that will do it.&amp;nbsp; I was expecting the text value of the selected search layer but get it's index.&amp;nbsp; Not a big deal, I can work with this!&amp;nbsp; Thank you Robert!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(&lt;EM&gt;I need to get better at inspecting elements and locating them, not sure why I struggle with this!)&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Dec 2020 15:18:15 GMT</pubDate>
    <dc:creator>JamesCrandall</dc:creator>
    <dc:date>2020-12-04T15:18:15Z</dc:date>
    <item>
      <title>eSearch: get value of currently selected search layer</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-get-value-of-currently-selected-search/m-p/1006915#M14284</link>
      <description>&lt;P&gt;&lt;EM&gt;This is cross post from "Documents" section (sorry about that getting used to new forum).&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the Widget.js of the eSearch, what is the best way to get the value from the currently selected value in the search layer drop down list?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 13:09:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-get-value-of-currently-selected-search/m-p/1006915#M14284</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2020-12-04T13:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: eSearch: get value of currently selected search layer</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-get-value-of-currently-selected-search/m-p/1006964#M14285</link>
      <description>&lt;P&gt;James,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;If I am understanding your question correctly you are asking to know which search Layer is selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;To get the index:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;this.AttributeLayerIndex&lt;/LI-CODE&gt;&lt;P&gt;If you want the actual layer object then:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;this.config.layers[this.AttributeLayerIndex]&lt;/LI-CODE&gt;&lt;P&gt;If you just want the text/name then:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;this.selectLayerAttribute.get('value')&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 04 Dec 2020 15:09:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-get-value-of-currently-selected-search/m-p/1006964#M14285</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-12-04T15:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: eSearch: get value of currently selected search layer</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-get-value-of-currently-selected-search/m-p/1006968#M14286</link>
      <description>&lt;P&gt;I think that will do it.&amp;nbsp; I was expecting the text value of the selected search layer but get it's index.&amp;nbsp; Not a big deal, I can work with this!&amp;nbsp; Thank you Robert!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(&lt;EM&gt;I need to get better at inspecting elements and locating them, not sure why I struggle with this!)&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 15:18:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-get-value-of-currently-selected-search/m-p/1006968#M14286</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2020-12-04T15:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: eSearch: get value of currently selected search layer</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-get-value-of-currently-selected-search/m-p/1006974#M14287</link>
      <description>&lt;P&gt;James,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The third option I provided should give you the text.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 15:47:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-get-value-of-currently-selected-search/m-p/1006974#M14287</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-12-04T15:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: eSearch: get value of currently selected search layer</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-get-value-of-currently-selected-search/m-p/1006978#M14288</link>
      <description>&lt;P&gt;That's the one I used but gives the index.&amp;nbsp; Perfectly fine with me, it's actually preferable in case search layer names get changed but I just have to be careful not to shuffle things around without updating some conditional logic I have added.&lt;/P&gt;&lt;P&gt;All good -- thanks again Robert!&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 15:56:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-get-value-of-currently-selected-search/m-p/1006978#M14288</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2020-12-04T15:56:44Z</dc:date>
    </item>
  </channel>
</rss>

