<?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: Radio button and dropdown with populatedSearch in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Radio-button-and-dropdown-with-populatedSearch/m-p/62486#M3250</link>
    <description>&lt;P&gt;have you installed sideview utils app?&lt;/P&gt;</description>
    <pubDate>Tue, 31 Dec 2013 08:22:19 GMT</pubDate>
    <dc:creator>stefano_guidoba</dc:creator>
    <dc:date>2013-12-31T08:22:19Z</dc:date>
    <item>
      <title>Radio button and dropdown with populatedSearch</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Radio-button-and-dropdown-with-populatedSearch/m-p/62482#M3246</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;

&lt;P&gt;I wants to create a dropdown that will list all of my hosts based on a source selected by a radio button.&lt;/P&gt;

&lt;P&gt;How can i do that ?&lt;/P&gt;

&lt;P&gt;Here is my code, actually not working :&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;FORM&gt;&lt;BR /&gt;
    &lt;LABEL&gt;Test&lt;/LABEL&gt;&lt;P&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;searchTemplate&amp;gt;index=main  host=$hote$ source=$rzosrc$&amp;lt;/searchTemplate&amp;gt;

&amp;lt;fieldset autorun="on"&amp;gt;
    &amp;lt;input type="radio" token="rzosrc"&amp;gt;
        &amp;lt;label&amp;gt;Choix du reseau&amp;lt;/label&amp;gt;
        &amp;lt;choice value="RMS"&amp;gt;RMS&amp;lt;/choice&amp;gt;
        &amp;lt;choice value="RTH"&amp;gt;RTH&amp;lt;/choice&amp;gt;
        &amp;lt;choice value="SPP"&amp;gt;SPP&amp;lt;/choice&amp;gt;
    &amp;lt;/input&amp;gt;

    &amp;lt;input type="dropdown" token="hote"&amp;gt;
        &amp;lt;label&amp;gt;Choix host&amp;lt;/label&amp;gt;  
        &amp;lt;populatingSearch fieldForValue="host" fieldForLabel="host" earliest="-2d" latest="now"&amp;gt;| metadata source=$rzosrc$ type="hosts" index="main"
        &amp;lt;/populatingSearch&amp;gt;
     &amp;lt;/input&amp;gt;

&amp;lt;/fieldset&amp;gt;

&amp;lt;row&amp;gt;
    &amp;lt;event&amp;gt;
        &amp;lt;title&amp;gt;Results&amp;lt;/title&amp;gt;
        &amp;lt;option name="count"&amp;gt;50&amp;lt;/option&amp;gt;
    &amp;lt;/event&amp;gt;
&amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;/P&gt;&lt;/FORM&gt;&lt;BR /&gt;
&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Thanks you&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2013 07:54:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Radio-button-and-dropdown-with-populatedSearch/m-p/62482#M3246</guid>
      <dc:creator>ddarmand</dc:creator>
      <dc:date>2013-03-15T07:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Radio button and dropdown with populatedSearch</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Radio-button-and-dropdown-with-populatedSearch/m-p/62483#M3247</link>
      <description>&lt;P&gt;Nobody ? please !&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2013 07:24:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Radio-button-and-dropdown-with-populatedSearch/m-p/62483#M3247</guid>
      <dc:creator>ddarmand</dc:creator>
      <dc:date>2013-03-18T07:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Radio button and dropdown with populatedSearch</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Radio-button-and-dropdown-with-populatedSearch/m-p/62484#M3248</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;&lt;A href="http://dfiles.eu/files/4ulhir5ab"&gt;My Code&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;here is my Advanced XML to create a Dropdown list populated with a search. My suggestion is to put another pulldown around it to let you select your source and use that parameter in the subsequent search that will finally populate the second dropdown.&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Stefano&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2013 10:41:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Radio-button-and-dropdown-with-populatedSearch/m-p/62484#M3248</guid>
      <dc:creator>stefano_guidoba</dc:creator>
      <dc:date>2013-03-18T10:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Radio button and dropdown with populatedSearch</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Radio-button-and-dropdown-with-populatedSearch/m-p/62485#M3249</link>
      <description>&lt;P&gt;Thanks but when i try to test this code, i code the error message "layoutPanel is not define for module pulldown" and for module search ect... what should i do ?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2013 09:36:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Radio-button-and-dropdown-with-populatedSearch/m-p/62485#M3249</guid>
      <dc:creator>ddarmand</dc:creator>
      <dc:date>2013-03-19T09:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Radio button and dropdown with populatedSearch</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Radio-button-and-dropdown-with-populatedSearch/m-p/62486#M3250</link>
      <description>&lt;P&gt;have you installed sideview utils app?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2013 08:22:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Radio-button-and-dropdown-with-populatedSearch/m-p/62486#M3250</guid>
      <dc:creator>stefano_guidoba</dc:creator>
      <dc:date>2013-12-31T08:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Radio button and dropdown with populatedSearch</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Radio-button-and-dropdown-with-populatedSearch/m-p/62487#M3251</link>
      <description>&lt;P&gt;In Splunk 6, this is now possible using Simple XML as part of the re-design to enable the use of tokens anywhere in the page.&lt;/P&gt;

&lt;P&gt;There is an example of this "Cascading Form Input" within the "Splunk 6 Dashboard Examples" App (&lt;A href="http://apps.splunk.com/app/1603/"&gt;http://apps.splunk.com/app/1603/&lt;/A&gt;).&lt;/P&gt;

&lt;P&gt;Here is the example XML:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Cascading Form Input Element&amp;lt;/label&amp;gt;
  &amp;lt;description&amp;gt;A form input element's selected value is used to populate another form input element's options.&amp;lt;/description&amp;gt;
  &amp;lt;fieldset autoRun="true"&amp;gt;
    &amp;lt;input type="dropdown" token="username"&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;populatingSearch fieldForValue="user" fieldForLabel="user" earliest="-24h" latest="now"&amp;gt;
        &amp;lt;![CDATA[index=_internal | stats count by user]]&amp;gt;
      &amp;lt;/populatingSearch&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="radio" token="source"&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;populatingSearch fieldForValue="sourcetype" fieldForLabel="sourcetype" earliest="-24h" latest="now"&amp;gt;
        &amp;lt;![CDATA[index=_internal user=$username$| stats count by sourcetype]]&amp;gt;
      &amp;lt;/populatingSearch&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;table&amp;gt;
      &amp;lt;title&amp;gt;Table of events&amp;lt;/title&amp;gt;
      &amp;lt;searchString&amp;gt;index=_internal user=$username$ sourcetype=$source$ | head 1000 | table _time, user, sourcetype, _raw&amp;lt;/searchString&amp;gt;
      &amp;lt;earliestTime&amp;gt;-24h@h&amp;lt;/earliestTime&amp;gt;
      &amp;lt;latestTime&amp;gt;now&amp;lt;/latestTime&amp;gt;
    &amp;lt;/table&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 Dec 2013 17:33:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Radio-button-and-dropdown-with-populatedSearch/m-p/62487#M3251</guid>
      <dc:creator>nfilippi_splunk</dc:creator>
      <dc:date>2013-12-31T17:33:54Z</dc:date>
    </item>
  </channel>
</rss>

