<?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: How can I toggle between results of different drilldowns in the same dashboard? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-toggle-between-results-of-different-drilldowns-in-the/m-p/300083#M19057</link>
    <description>&lt;P&gt;You can create the following drilldown in your table&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;drilldown&amp;gt;
      &amp;lt;condition field="GROUP"&amp;gt;
        &amp;lt;eval token="token1"&amp;gt;case($row.GROUP$="abc","true")&amp;lt;/eval&amp;gt;
        &amp;lt;eval token="token2"&amp;gt;case($row.GROUP$="bbc","true")&amp;lt;/eval&amp;gt;
      &amp;lt;/condition&amp;gt;
    &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS: Change values &lt;CODE&gt;abc&lt;/CODE&gt; and &lt;CODE&gt;bbc&lt;/CODE&gt;as per your actual field values.&lt;BR /&gt;
Then you can hide two charts using depends with token1 and token2 i.e.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;chart depends="$token1$"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;AND&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;chart depends="$token2$"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 28 Aug 2017 12:36:54 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2017-08-28T12:36:54Z</dc:date>
    <item>
      <title>How can I toggle between results of different drilldowns in the same dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-toggle-between-results-of-different-drilldowns-in-the/m-p/300079#M19053</link>
      <description>&lt;P&gt;Drilldown: I have two rows in table and want to drill down another panel in same dashboards. if i click on row1 drilldown should have to give one results. if i click row2 I want drilldown2 results&lt;/P&gt;

&lt;P&gt;i have a table with 2 rows. if i click the row1 i want the results of drilldown1 and same vice versa if i click row2 i want the results of 2nd drill down panel in the same dashboards&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2017 11:21:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-toggle-between-results-of-different-drilldowns-in-the/m-p/300079#M19053</guid>
      <dc:creator>DataOrg</dc:creator>
      <dc:date>2017-08-24T11:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can I toggle between results of different drilldowns in the same dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-toggle-between-results-of-different-drilldowns-in-the/m-p/300080#M19054</link>
      <description>&lt;P&gt;You can set and unset token on the drilldown option. If you have first column with a key to identify a row and specific behavior, use the below syntax to compare the key and set and unset token .Use the same token to show/hide panels in the dashboard.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;drilldown&amp;gt;
         &amp;lt;condition match="$row.colmnname$== value1"&amp;gt; 
            &amp;lt;set token="token1"&amp;gt;true&amp;lt;/set&amp;gt;
            &amp;lt;unset token="token2"&amp;gt;&amp;lt;/unset&amp;gt;
         &amp;lt;condition&amp;gt;
         &amp;lt;condition match="$row.colmnname$== value2"&amp;gt; 
            &amp;lt;set token="token2"&amp;gt;true&amp;lt;/set&amp;gt;
            &amp;lt;unset token="token1"&amp;gt;&amp;lt;/unset&amp;gt;
         &amp;lt;condition&amp;gt;
       &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If u are facing issue with simple xml, paste the xml here, will and and fix it. Happy splunking &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2017 12:42:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-toggle-between-results-of-different-drilldowns-in-the/m-p/300080#M19054</guid>
      <dc:creator>nishantmishra21</dc:creator>
      <dc:date>2017-08-24T12:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I toggle between results of different drilldowns in the same dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-toggle-between-results-of-different-drilldowns-in-the/m-p/300081#M19055</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/45387"&gt;@nishantmishra21&lt;/a&gt;&lt;/P&gt;

&lt;P&gt;NEXT_PAY_PERIOD_NAME                  GROUP        Total&lt;BR /&gt;
APRW1-FY18                                         abc                $8,768,545.49&lt;BR /&gt;
APRW1-FY18                                         bbc                $25,252,666.80&lt;/P&gt;

&lt;P&gt;this is my table. if i click on the group column with abc. i have to get chart1 and if i click bbc i need to get chart 2 by unset chart1.&lt;BR /&gt;
pls correct my code&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;panel&amp;gt;
          &amp;lt;title&amp;gt;Test&amp;lt;/title&amp;gt;
          &amp;lt;table&amp;gt;
            &amp;lt;search&amp;gt;
              &amp;lt;query&amp;gt;|abc.csv| stats sum(AMOUNT) as Total by NAME,GROUP|sort PERIOD|eval Total=round(Total,2)| fieldformat Total= "$" + tostring(Total, "commas")&amp;lt;/query&amp;gt;
                     &amp;lt;/search&amp;gt;
            &amp;lt;drilldown&amp;gt;
              &amp;lt;condition match="$row.colmnname$== value1"&amp;gt;
                &amp;lt;set token="token1"&amp;gt;true&amp;lt;/set&amp;gt;
                &amp;lt;unset token="token2"&amp;gt;&amp;lt;/unset&amp;gt;
              &amp;lt;/condition&amp;gt;
              &amp;lt;condition match="$row.colmnname$== value2"&amp;gt;
                &amp;lt;set token="token2"&amp;gt;true&amp;lt;/set&amp;gt;
                &amp;lt;unset token="token1"&amp;gt;&amp;lt;/unset&amp;gt;
              &amp;lt;/condition&amp;gt;
            &amp;lt;/drilldown&amp;gt;
          &amp;lt;/table&amp;gt;
        &amp;lt;/panel&amp;gt;
      &amp;lt;/row&amp;gt;
      &amp;lt;row&amp;gt;
        &amp;lt;panel &amp;gt;
          &amp;lt;chart depends="$token1$"&amp;gt;
            &amp;lt;search&amp;gt;
              &amp;lt;query&amp;gt;|query|where PAY_GROUP="abc" | stats sum(PAYMENT_AMOUNT) as Total by CODE,PNAME, GROUP|sort- Total|eval Total=round(Total,2)|stats sum by CODE&amp;lt;/query&amp;gt;

            &amp;lt;/search&amp;gt;
            &amp;lt;option name="charting.chart"&amp;gt;pie&amp;lt;/option&amp;gt;
          &amp;lt;/chart&amp;gt;
        &amp;lt;/panel&amp;gt;
    &amp;lt;panel &amp;gt;
          &amp;lt;chart depends="$token2$"&amp;gt;
            &amp;lt;search&amp;gt;
              &amp;lt;query&amp;gt;|query|where PAY_GROUP="abc" | stats sum(PAYMENT_AMOUNT) as Total by CODE,PNAME, GROUP|sort- Total|eval Total=round(Total,2)|stats sum by CODE&amp;lt;/query&amp;gt;

            &amp;lt;/search&amp;gt;
            &amp;lt;option name="charting.chart"&amp;gt;pie&amp;lt;/option&amp;gt;
          &amp;lt;/chart&amp;gt;
        &amp;lt;/panel&amp;gt;
    &amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:32:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-toggle-between-results-of-different-drilldowns-in-the/m-p/300081#M19055</guid>
      <dc:creator>DataOrg</dc:creator>
      <dc:date>2020-09-29T15:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: How can I toggle between results of different drilldowns in the same dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-toggle-between-results-of-different-drilldowns-in-the/m-p/300082#M19056</link>
      <description>&lt;P&gt;For Each dashboard/panel You can use separate drill down option giving DRILL DOWN report URL.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Panel/dashboard 1&lt;/STRONG&gt;&lt;BR /&gt;
Next Drill down for the same.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;single&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;index=xyz sourcetype=XXX | .....&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;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
    &amp;lt;/search&amp;gt;
    &amp;lt;!-- &amp;lt;title&amp;gt;abc&amp;lt;/title&amp;gt; --&amp;gt;
    &amp;lt;drilldown target="0000"&amp;gt;
      &amp;lt;link&amp;gt;
        &amp;lt;![CDATA[URL]]&amp;gt;
        &amp;lt;![CDATA[-]]&amp;gt;
        &amp;lt;![CDATA[.. URL Continue]]&amp;gt;
      &amp;lt;/link&amp;gt;
    &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Above solution I am using for 16 panel dashboard.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2017 12:14:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-toggle-between-results-of-different-drilldowns-in-the/m-p/300082#M19056</guid>
      <dc:creator>ab81428</dc:creator>
      <dc:date>2017-08-28T12:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: How can I toggle between results of different drilldowns in the same dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-toggle-between-results-of-different-drilldowns-in-the/m-p/300083#M19057</link>
      <description>&lt;P&gt;You can create the following drilldown in your table&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;drilldown&amp;gt;
      &amp;lt;condition field="GROUP"&amp;gt;
        &amp;lt;eval token="token1"&amp;gt;case($row.GROUP$="abc","true")&amp;lt;/eval&amp;gt;
        &amp;lt;eval token="token2"&amp;gt;case($row.GROUP$="bbc","true")&amp;lt;/eval&amp;gt;
      &amp;lt;/condition&amp;gt;
    &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS: Change values &lt;CODE&gt;abc&lt;/CODE&gt; and &lt;CODE&gt;bbc&lt;/CODE&gt;as per your actual field values.&lt;BR /&gt;
Then you can hide two charts using depends with token1 and token2 i.e.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;chart depends="$token1$"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;AND&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;chart depends="$token2$"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Aug 2017 12:36:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-toggle-between-results-of-different-drilldowns-in-the/m-p/300083#M19057</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-08-28T12:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: How can I toggle between results of different drilldowns in the same dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-toggle-between-results-of-different-drilldowns-in-the/m-p/300084#M19058</link>
      <description>&lt;P&gt;it working fine.&lt;BR /&gt;
how to unset both token in single button click?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2017 13:26:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-toggle-between-results-of-different-drilldowns-in-the/m-p/300084#M19058</guid>
      <dc:creator>DataOrg</dc:creator>
      <dc:date>2017-08-28T13:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: How can I toggle between results of different drilldowns in the same dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-toggle-between-results-of-different-drilldowns-in-the/m-p/300085#M19059</link>
      <description>&lt;P&gt;If you want to code a button (either Submit or your own Reset button) to unset the token you will have to use Simple XML JavaScript extension.&lt;/P&gt;

&lt;P&gt;If you are fine using a checkbox for the same kind of functionality, you can try out the following code:&lt;/P&gt;

&lt;P&gt;Hide Charts&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   &amp;lt;condition value="unset"&amp;gt;
       &amp;lt;unset token="token1"&amp;gt;&amp;lt;/unset&amp;gt;
       &amp;lt;unset token="token2"&amp;gt;&amp;lt;/unset&amp;gt;
       &amp;lt;unset token="form.unsetTokens"&amp;gt;&amp;lt;/unset&amp;gt;
   &amp;lt;/condition&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Change event handler of the Checkbox &lt;CODE&gt;unsetTokens&lt;/CODE&gt; is used to unset the tokens i.e. token1 and token2. The form level token for checkbox itself i.e. &lt;CODE&gt;form.unsetTokens&lt;/CODE&gt; is unset to reset the check in the checkbox to give it click kind of feel.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2017 14:25:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-toggle-between-results-of-different-drilldowns-in-the/m-p/300085#M19059</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-08-28T14:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can I toggle between results of different drilldowns in the same dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-toggle-between-results-of-different-drilldowns-in-the/m-p/300086#M19060</link>
      <description>&lt;P&gt;@premranjithj, please confirm if you were able to try the unset code change as suggested. Did it work fine for you?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2017 06:55:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-toggle-between-results-of-different-drilldowns-in-the/m-p/300086#M19060</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-08-29T06:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can I toggle between results of different drilldowns in the same dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-toggle-between-results-of-different-drilldowns-in-the/m-p/300087#M19061</link>
      <description>&lt;P&gt;below is my HTML for my button. here where i should add above unset token commands&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;     &amp;lt;panel&amp;gt;
    &amp;lt;html&amp;gt;
                                     &amp;lt;button class="butn6" data-unset-token="sourcetype1"  &amp;gt;show less details&amp;lt;/button&amp;gt;

            &amp;lt;search&amp;gt;
                &amp;lt;/search&amp;gt;
                        &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Aug 2017 07:01:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-toggle-between-results-of-different-drilldowns-in-the/m-p/300087#M19061</guid>
      <dc:creator>DataOrg</dc:creator>
      <dc:date>2017-08-29T07:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: How can I toggle between results of different drilldowns in the same dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-toggle-between-results-of-different-drilldowns-in-the/m-p/300088#M19062</link>
      <description>&lt;P&gt;@premranjithj, above example is from SimpleXML using checkbox, which does not require HTML code.&lt;/P&gt;

&lt;P&gt;If you want to add HTML button then you would need to use JavaScript Extension to Simple XML. Can you first try out and confirm adding a checkbox with change event containing above condition block to unset the tokens?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="checkbox" token="unsetTokens" searchWhenChanged="true"&amp;gt;
   &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
   &amp;lt;choice value="unset"&amp;gt;Hide All&amp;lt;/choice&amp;gt;
   &amp;lt;change&amp;gt;
       &amp;lt;condition value="unset"&amp;gt;
          &amp;lt;unset token="token1"&amp;gt;&amp;lt;/unset&amp;gt;
          &amp;lt;unset token="token2"&amp;gt;&amp;lt;/unset&amp;gt;
          &amp;lt;unset token="form.unsetTokens"&amp;gt;&amp;lt;/unset&amp;gt;
       &amp;lt;/condition&amp;gt;
   &amp;lt;/change&amp;gt;
&amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;We can take the button with JavaScript as next step.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2017 09:26:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-toggle-between-results-of-different-drilldowns-in-the/m-p/300088#M19062</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-08-29T09:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: How can I toggle between results of different drilldowns in the same dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-toggle-between-results-of-different-drilldowns-in-the/m-p/300089#M19063</link>
      <description>&lt;P&gt;@premjinath, I just checked one of my previous answers I have already mentioned how to create a Refresh button using HTML Panel in Splunk Simple XML dashboard.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   &amp;lt;html&amp;gt;
     &amp;lt;button id="refresh" type="button" class="btn"&amp;gt;Refresh
     &amp;lt;i class="icon-rotate" style="font-size: 1em;"&amp;gt;&amp;lt;/i&amp;gt;
     &amp;lt;/button&amp;gt;
   &amp;lt;/html&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You will need additional JavaScript code in the Dashboard to reset the tokens:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; require([
     "jquery",
     "splunkjs/mvc/simplexml/eventhandler"
     ],
     function(
         $,        
         EventHandler
         ) {
         //jQuery to capture Refresh button click event    
         $('#refresh').on("click", function() {
             //Use EventHandler utiliy to unsetTokens
             EventHandler.unsetToken("token1");
             EventHandler.unsetToken("token2");
         });
     }
 );
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please try out this one as well. You can use SimpleXML with Checkbox option or SimpleXML JS Extension with Refresh button.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2017 10:09:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-toggle-between-results-of-different-drilldowns-in-the/m-p/300089#M19063</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-08-29T10:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can I toggle between results of different drilldowns in the same dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-toggle-between-results-of-different-drilldowns-in-the/m-p/300090#M19064</link>
      <description>&lt;P&gt;@niketnilay . thanks lot. it working&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2017 10:57:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-toggle-between-results-of-different-drilldowns-in-the/m-p/300090#M19064</guid>
      <dc:creator>DataOrg</dc:creator>
      <dc:date>2017-08-29T10:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can I toggle between results of different drilldowns in the same dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-toggle-between-results-of-different-drilldowns-in-the/m-p/300091#M19065</link>
      <description>&lt;P&gt;@premranjithj, please upvote the comments that have helped since you have already accepted the answer.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2017 11:42:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-toggle-between-results-of-different-drilldowns-in-the/m-p/300091#M19065</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-08-29T11:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can I toggle between results of different drilldowns in the same dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-toggle-between-results-of-different-drilldowns-in-the/m-p/300092#M19066</link>
      <description>&lt;P&gt;@niketnilay&lt;BR /&gt;
i need another help.&lt;BR /&gt;
i have 4 buttons and each button have 2 or 3 hidden panels.&lt;BR /&gt;
so if i click button1 the hidden panels should be shown. if i click button2 other buttons panels show be hidden and only button2 panels have to visible and vice versa for all buttons&lt;/P&gt;

&lt;P&gt;pls help how to do?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 07:03:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-toggle-between-results-of-different-drilldowns-in-the/m-p/300092#M19066</guid>
      <dc:creator>DataOrg</dc:creator>
      <dc:date>2017-08-30T07:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I toggle between results of different drilldowns in the same dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-toggle-between-results-of-different-drilldowns-in-the/m-p/300093#M19067</link>
      <description>&lt;P&gt;I think the code remains the same however, you set and unset tokens based on which button is being clicked.&lt;/P&gt;

&lt;P&gt;You will additionally require "splunkjs/mvc" to use default or submitted token model.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;      // mvc.Components.get() function to get all default Tokens
      var defaultTokenModel = mvc.Components.get("default");
      //jQuery to capture Refresh button click event    
      $('#button1').on("click", function() {
          defaultTokenModel.set("button1","true");
          //Use EventHandler utiliy to unset Tokens
          EventHandler.unsetToken("button2");
          EventHandler.unsetToken("button3");
          EventHandler.unsetToken("button4");
      });
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Similarly for other buttons.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Refer to Developer documentation: &lt;A href="http://dev.splunk.com/view/webframework-developapps/SP-CAAAEW3"&gt;http://dev.splunk.com/view/webframework-developapps/SP-CAAAEW3&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;PS: The above code is not tested, so please refer to one of my other answers and Splunk Developer portal to understand the concepts: &lt;A href="https://answers.splunk.com/answers/566582/how-to-hide-html-in-panel-when-multiple-tokens-are.html#answer-566628"&gt;https://answers.splunk.com/answers/566582/how-to-hide-html-in-panel-when-multiple-tokens-are.html#answer-566628&lt;/A&gt;&lt;BR /&gt;
If it does not work let me know. And if it works dont forget to upvote &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 09:13:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-toggle-between-results-of-different-drilldowns-in-the/m-p/300093#M19067</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-08-30T09:13:44Z</dc:date>
    </item>
  </channel>
</rss>

