<?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 programmatically change the config search layer in eSearch? in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-programmatically-change-the-config-search/m-p/851597#M10922</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was wondering if it is possible to programmatically change the config search layer based on a condition being met. I know you can access a search layer by its name using:&lt;/P&gt;&lt;P&gt;this.config.layers.name === "Name of the Search Layer"; &amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'm trying to do is set it to a particular search layer in my config. Any help programmatically changing this would be great.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 May 2018 11:52:57 GMT</pubDate>
    <dc:creator>MartinOwens1</dc:creator>
    <dc:date>2018-05-14T11:52:57Z</dc:date>
    <item>
      <title>How to programmatically change the config search layer in eSearch?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-programmatically-change-the-config-search/m-p/851597#M10922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was wondering if it is possible to programmatically change the config search layer based on a condition being met. I know you can access a search layer by its name using:&lt;/P&gt;&lt;P&gt;this.config.layers.name === "Name of the Search Layer"; &amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'm trying to do is set it to a particular search layer in my config. Any help programmatically changing this would be great.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2018 11:52:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-programmatically-change-the-config-search/m-p/851597#M10922</guid>
      <dc:creator>MartinOwens1</dc:creator>
      <dc:date>2018-05-14T11:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to programmatically change the config search layer in eSearch?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-programmatically-change-the-config-search/m-p/851598#M10923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the code below. Where X is equal to the index (number) of the layer you want to switch to (i.e first layer in the drop down is 0, etc, etc).&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&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;onAttributeLayerChange&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;X&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2018 12:46:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-programmatically-change-the-config-search/m-p/851598#M10923</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-05-14T12:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to programmatically change the config search layer in eSearch?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-programmatically-change-the-config-search/m-p/851599#M10924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert, that's exactly what I needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2018 13:08:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-programmatically-change-the-config-search/m-p/851599#M10924</guid>
      <dc:creator>MartinOwens1</dc:creator>
      <dc:date>2018-05-14T13:08:51Z</dc:date>
    </item>
  </channel>
</rss>

