<?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 Set-Unset token in Drilldown Visualisation in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Set-Unset-token-in-Drilldown-Visualisation/m-p/477178#M58599</link>
    <description>&lt;P&gt;Hi Splunkers,&lt;BR /&gt;
I have donut visualisation in my dashboard (screenshot attached).&lt;BR /&gt;
Since we do not have drilldown functionality inbuilt in &lt;STRONG&gt;&lt;A href="https://splunkbase.splunk.com/app/3238/"&gt;https://splunkbase.splunk.com/app/3238/&lt;/A&gt;&lt;/STRONG&gt;&lt;BR /&gt;
I have written js for click events on donut slice.&lt;BR /&gt;
I have tried with submitted, unsubmitted logic, used set and unset logic too, but doesnt seems to resolve my issue.&lt;BR /&gt;
here is my js:&lt;/P&gt;

&lt;P&gt;require(["splunkjs/mvc",&lt;BR /&gt;
          "jquery",&lt;BR /&gt;
          "splunkjs/ready!",&lt;BR /&gt;
          "splunkjs/mvc/simplexml/ready!"&lt;BR /&gt;
      ], function( mvc,&lt;BR /&gt;
      $){&lt;BR /&gt;
         var defaultTokenModel=mvc.Components.get("default");&lt;BR /&gt;
         var submittedTokenModel=mvc.Components.get("submitted");&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;      $(document).on("click","#payment_css g.c3-chart-arc.c3-target-Warning",function(){
         defaultTokenModel.set("color","Warning");
         submittedTokenModel.set("color","Warning");
         defaultTokenModel.set("alert","mobile");
         submittedTokenModel.set("alert","mobile");
      });

      $(document).on("click","#payment_css g.c3-chart-arc.c3-target-Critical",function(){
         defaultTokenModel.set("color","Critical");
         submittedTokenModel.set("color","Critical");
         defaultTokenModel.set("alert","mobile");
         submittedTokenModel.set("alert","mobile");
      });
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;$(document).on("click","#payment_css g.c3-chart-arc.c3-target-Normal",function(){&lt;BR /&gt;
             defaultTokenModel.set("color","Normal");&lt;BR /&gt;
             submittedTokenModel.set("color","Normal");&lt;BR /&gt;
             defaultTokenModel.set("alert","mobile");&lt;BR /&gt;
             submittedTokenModel.set("alert","mobile");&lt;BR /&gt;
          });&lt;/P&gt;

&lt;P&gt;$(document).on("click","#freedisk_css g.c3-chart-arc.c3-target-Warning",function(){&lt;BR /&gt;
             defaultTokenModel.set("color","Warning");&lt;BR /&gt;
             submittedTokenModel.set("color","Warning");&lt;BR /&gt;
             defaultTokenModel.set("alert","freedisk");&lt;BR /&gt;
             submittedTokenModel.set("alert","freedisk");&lt;BR /&gt;
          });&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;      $(document).on("click","#freedisk_css g.c3-chart-arc.c3-target-Critical",function(){
         defaultTokenModel.set("color","Critical");
         submittedTokenModel.set("color","Critical");
         defaultTokenModel.set("alert","freedisk");
         submittedTokenModel.set("alert","freedisk");
      });

      $(document).on("click","#freedisk_css g.c3-chart-arc.c3-target-Normal",function(){
         defaultTokenModel.set("color","Normal");
         submittedTokenModel.set("color","Normal");
         defaultTokenModel.set("alert","freedisk");
         submittedTokenModel.set("alert","freedisk");
      });
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;});&lt;/P&gt;

&lt;P&gt;in above js,  token: alert is my panel dependent and token color is donut slice dependent.&lt;BR /&gt;
Issue is : i have different table for both of these alert i,e &lt;STRONG&gt;Mobile and freedisk&lt;/STRONG&gt; , in my xml i have given &lt;BR /&gt;
if i click on Mobile Panel, the table for freedisk also appears with message "No Result Found", and viceversa.&lt;/P&gt;

&lt;P&gt;What i want is, on the basis of click, i want to toggle between the tables.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Apr 2020 07:48:58 GMT</pubDate>
    <dc:creator>sarvesh_11</dc:creator>
    <dc:date>2020-04-17T07:48:58Z</dc:date>
    <item>
      <title>Set-Unset token in Drilldown Visualisation</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Set-Unset-token-in-Drilldown-Visualisation/m-p/477178#M58599</link>
      <description>&lt;P&gt;Hi Splunkers,&lt;BR /&gt;
I have donut visualisation in my dashboard (screenshot attached).&lt;BR /&gt;
Since we do not have drilldown functionality inbuilt in &lt;STRONG&gt;&lt;A href="https://splunkbase.splunk.com/app/3238/"&gt;https://splunkbase.splunk.com/app/3238/&lt;/A&gt;&lt;/STRONG&gt;&lt;BR /&gt;
I have written js for click events on donut slice.&lt;BR /&gt;
I have tried with submitted, unsubmitted logic, used set and unset logic too, but doesnt seems to resolve my issue.&lt;BR /&gt;
here is my js:&lt;/P&gt;

&lt;P&gt;require(["splunkjs/mvc",&lt;BR /&gt;
          "jquery",&lt;BR /&gt;
          "splunkjs/ready!",&lt;BR /&gt;
          "splunkjs/mvc/simplexml/ready!"&lt;BR /&gt;
      ], function( mvc,&lt;BR /&gt;
      $){&lt;BR /&gt;
         var defaultTokenModel=mvc.Components.get("default");&lt;BR /&gt;
         var submittedTokenModel=mvc.Components.get("submitted");&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;      $(document).on("click","#payment_css g.c3-chart-arc.c3-target-Warning",function(){
         defaultTokenModel.set("color","Warning");
         submittedTokenModel.set("color","Warning");
         defaultTokenModel.set("alert","mobile");
         submittedTokenModel.set("alert","mobile");
      });

      $(document).on("click","#payment_css g.c3-chart-arc.c3-target-Critical",function(){
         defaultTokenModel.set("color","Critical");
         submittedTokenModel.set("color","Critical");
         defaultTokenModel.set("alert","mobile");
         submittedTokenModel.set("alert","mobile");
      });
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;$(document).on("click","#payment_css g.c3-chart-arc.c3-target-Normal",function(){&lt;BR /&gt;
             defaultTokenModel.set("color","Normal");&lt;BR /&gt;
             submittedTokenModel.set("color","Normal");&lt;BR /&gt;
             defaultTokenModel.set("alert","mobile");&lt;BR /&gt;
             submittedTokenModel.set("alert","mobile");&lt;BR /&gt;
          });&lt;/P&gt;

&lt;P&gt;$(document).on("click","#freedisk_css g.c3-chart-arc.c3-target-Warning",function(){&lt;BR /&gt;
             defaultTokenModel.set("color","Warning");&lt;BR /&gt;
             submittedTokenModel.set("color","Warning");&lt;BR /&gt;
             defaultTokenModel.set("alert","freedisk");&lt;BR /&gt;
             submittedTokenModel.set("alert","freedisk");&lt;BR /&gt;
          });&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;      $(document).on("click","#freedisk_css g.c3-chart-arc.c3-target-Critical",function(){
         defaultTokenModel.set("color","Critical");
         submittedTokenModel.set("color","Critical");
         defaultTokenModel.set("alert","freedisk");
         submittedTokenModel.set("alert","freedisk");
      });

      $(document).on("click","#freedisk_css g.c3-chart-arc.c3-target-Normal",function(){
         defaultTokenModel.set("color","Normal");
         submittedTokenModel.set("color","Normal");
         defaultTokenModel.set("alert","freedisk");
         submittedTokenModel.set("alert","freedisk");
      });
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;});&lt;/P&gt;

&lt;P&gt;in above js,  token: alert is my panel dependent and token color is donut slice dependent.&lt;BR /&gt;
Issue is : i have different table for both of these alert i,e &lt;STRONG&gt;Mobile and freedisk&lt;/STRONG&gt; , in my xml i have given &lt;BR /&gt;
if i click on Mobile Panel, the table for freedisk also appears with message "No Result Found", and viceversa.&lt;/P&gt;

&lt;P&gt;What i want is, on the basis of click, i want to toggle between the tables.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 07:48:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Set-Unset-token-in-Drilldown-Visualisation/m-p/477178#M58599</guid>
      <dc:creator>sarvesh_11</dc:creator>
      <dc:date>2020-04-17T07:48:58Z</dc:date>
    </item>
  </channel>
</rss>

