<?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 update a dropdown list from another dropdown list in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/How-to-update-a-dropdown-list-from-another-dropdown-list/m-p/509177#M9085</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;In my dashboard I use a first dropdown list with static values&lt;/P&gt;&lt;P&gt;These values make reference to the SITE fields I use in my different reports with the lookup below :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    | lookup TOTO.csv HOSTNAME as host output SITE &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I would be able to update a second dropdown list from the first need&lt;/P&gt;&lt;P&gt;It means that when I select the SITE field in the first drilldown, I would like to display in the second dropdown list&amp;nbsp; all the host corresponding to the SITE selected in the first dropdown list&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you help me please?&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jul 2020 06:32:37 GMT</pubDate>
    <dc:creator>jip31</dc:creator>
    <dc:date>2020-07-15T06:32:37Z</dc:date>
    <item>
      <title>How to update a dropdown list from another dropdown list</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-update-a-dropdown-list-from-another-dropdown-list/m-p/509177#M9085</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;In my dashboard I use a first dropdown list with static values&lt;/P&gt;&lt;P&gt;These values make reference to the SITE fields I use in my different reports with the lookup below :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    | lookup TOTO.csv HOSTNAME as host output SITE &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I would be able to update a second dropdown list from the first need&lt;/P&gt;&lt;P&gt;It means that when I select the SITE field in the first drilldown, I would like to display in the second dropdown list&amp;nbsp; all the host corresponding to the SITE selected in the first dropdown list&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you help me please?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 06:32:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-update-a-dropdown-list-from-another-dropdown-list/m-p/509177#M9085</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2020-07-15T06:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a dropdown list from another dropdown list</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-update-a-dropdown-list-from-another-dropdown-list/m-p/509202#M9086</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/102660"&gt;@jip31&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Use the token from first dropdown in the second drop down by using a dynamic search.&lt;/P&gt;&lt;P&gt;Please find a run anywhere example&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Drop Down&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="site"&amp;gt;
      &amp;lt;label&amp;gt;Site&amp;lt;/label&amp;gt;
      &amp;lt;choice value="site1"&amp;gt;Site1&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="site2"&amp;gt;Site2&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="site3"&amp;gt;Site3&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;site1&amp;lt;/default&amp;gt;
      &amp;lt;initialValue&amp;gt;site1&amp;lt;/initialValue&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="dropdown" token="host"&amp;gt;
      &amp;lt;label&amp;gt;Host&amp;lt;/label&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;hosts&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;hosts&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;|makeresults|eval site="site1 site1 site2 site2 site3 site3"|makemv site|mvexpand site
|appendcols [|makeresults | eval hosts="host1 host2 host3 host4 host5 host6"|makemv hosts|mvexpand hosts]
|where site="$site$"
|stats count by hosts|fields hosts&amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;-15m&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/search&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;|makeresults|eval site="site1 site1 site2 site2 site3 site3"|makemv site|mvexpand site
|appendcols [|makeresults | eval hosts="host1 host2 host3 host4 host5 host6"|makemv hosts|mvexpand hosts]
|where site="$site$"&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-15m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Table is just a display of second dropdown search&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 08:32:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-update-a-dropdown-list-from-another-dropdown-list/m-p/509202#M9086</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2020-07-15T08:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a dropdown list from another dropdown list</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-update-a-dropdown-list-from-another-dropdown-list/m-p/509486#M9087</link>
      <description>&lt;P&gt;thanks renjith&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 09:46:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-update-a-dropdown-list-from-another-dropdown-list/m-p/509486#M9087</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2020-07-16T09:46:07Z</dc:date>
    </item>
  </channel>
</rss>

