<?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: Drop down menu feed another drop down menu in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Drop-down-menu-feed-another-drop-down-menu/m-p/355667#M23179</link>
    <description>&lt;P&gt;If you've access to "Splunk 6: dashboard examples" app (&lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;https://splunkbase.splunk.com/app/1603/&lt;/A&gt;) , you can reference "Form Input Element&amp;gt;&amp;gt;Cascading Form Input".&lt;/P&gt;</description>
    <pubDate>Thu, 15 Mar 2018 21:25:07 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2018-03-15T21:25:07Z</dc:date>
    <item>
      <title>Drop down menu feed another drop down menu</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Drop-down-menu-feed-another-drop-down-menu/m-p/355666#M23178</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;

&lt;P&gt;I am trying to figure out how to create drop down menu that dynamically feeds another drop down menu.  I am trying to create a dashboard for management to select a person who owns data in Splunk and based on that select have the next drop down menu auto fill with the roles that are assigned to said data owner.&lt;/P&gt;

&lt;P&gt;Example:&lt;/P&gt;

&lt;P&gt;Bob owns two roles bobs_users and bobs_powers&lt;BR /&gt;
Tom owns three roles toms_users, toms_powers and toms_admin&lt;BR /&gt;
Cat owns two roles cats_user and cats_admin&lt;/P&gt;

&lt;P&gt;Then based on the two drop down menus have it auto populate the roles in the following simple search:&lt;/P&gt;

&lt;P&gt;| rest /services/authentication/users splunk_server=local &lt;BR /&gt;
| fields title roles capabilities &lt;BR /&gt;
| rename title as User &lt;BR /&gt;
| search roles=$role$&lt;/P&gt;

&lt;P&gt;I am not having much luck as the owners are not index any where in Splunk.  I mean I could create a one time lookup file and use that to try and auto populate the roles drop down, but trying to do everything from drop down menus/xml without having to do extra work if possible.&lt;/P&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;

&lt;P&gt;thanks&lt;BR /&gt;
ed&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:30:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Drop-down-menu-feed-another-drop-down-menu/m-p/355666#M23178</guid>
      <dc:creator>edwardrose</dc:creator>
      <dc:date>2020-09-29T18:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down menu feed another drop down menu</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Drop-down-menu-feed-another-drop-down-menu/m-p/355667#M23179</link>
      <description>&lt;P&gt;If you've access to "Splunk 6: dashboard examples" app (&lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;https://splunkbase.splunk.com/app/1603/&lt;/A&gt;) , you can reference "Form Input Element&amp;gt;&amp;gt;Cascading Form Input".&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 21:25:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Drop-down-menu-feed-another-drop-down-menu/m-p/355667#M23179</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-03-15T21:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down menu feed another drop down menu</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Drop-down-menu-feed-another-drop-down-menu/m-p/355668#M23180</link>
      <description>&lt;P&gt;hello there,&lt;/P&gt;

&lt;P&gt;hope i understood the question, &lt;BR /&gt;
see screenshot here and code below:&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/4556iE530FCF80EBB93ED/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;kml:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Form Input REST Users Roles&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="ROLE" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Select Role&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;ALL&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
      &amp;lt;initialValue&amp;gt;*&amp;lt;/initialValue&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;role&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;role&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;| rest /services/authentication/users splunk_server=local 
| stats values(roles) as role
| mvexpand role&amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;-24h@h&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;input type="dropdown" token="USER" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Select User&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;ALL&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
      &amp;lt;initialValue&amp;gt;*&amp;lt;/initialValue&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;User&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;User&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;| rest /services/authentication/users splunk_server=local 
| fields title roles  
| rename title as User
| search roles=$ROLE$
| table User&amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;-24h@h&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;| rest /services/authentication/users splunk_server=local 
| fields title roles  
| rename title as User
| search roles=$ROLE$ User=$USER$&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;0&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;50&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&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;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;hope it helps&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 01:31:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Drop-down-menu-feed-another-drop-down-menu/m-p/355668#M23180</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2018-03-16T01:31:23Z</dc:date>
    </item>
  </channel>
</rss>

