<?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 Conditional for hidden panels in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Conditional-for-hidden-panels/m-p/352505#M22959</link>
    <description>&lt;P&gt;When I click one of my panels it shows another one, I want to be able to click that original panel and re-hide the panel that is now showing.&lt;/P&gt;

&lt;P&gt;I tried doing something like this, but couldn't get it working.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;drilldown&amp;gt;
  &amp;lt;condition NotinUse !=="true"&amp;gt;
    &amp;lt;set token="NotinUse"&amp;gt;true&amp;lt;/set&amp;gt;
  &amp;lt;/condition&amp;gt;
  &amp;lt;condition NotinUse=="true"&amp;gt;
    &amp;lt;set token="NotinUse"&amp;gt;"false"&amp;lt;/set&amp;gt;
  &amp;lt;/condition&amp;gt;
&amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 27 Apr 2017 17:34:55 GMT</pubDate>
    <dc:creator>JoshuaJohn</dc:creator>
    <dc:date>2017-04-27T17:34:55Z</dc:date>
    <item>
      <title>Conditional for hidden panels</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Conditional-for-hidden-panels/m-p/352505#M22959</link>
      <description>&lt;P&gt;When I click one of my panels it shows another one, I want to be able to click that original panel and re-hide the panel that is now showing.&lt;/P&gt;

&lt;P&gt;I tried doing something like this, but couldn't get it working.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;drilldown&amp;gt;
  &amp;lt;condition NotinUse !=="true"&amp;gt;
    &amp;lt;set token="NotinUse"&amp;gt;true&amp;lt;/set&amp;gt;
  &amp;lt;/condition&amp;gt;
  &amp;lt;condition NotinUse=="true"&amp;gt;
    &amp;lt;set token="NotinUse"&amp;gt;"false"&amp;lt;/set&amp;gt;
  &amp;lt;/condition&amp;gt;
&amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Apr 2017 17:34:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Conditional-for-hidden-panels/m-p/352505#M22959</guid>
      <dc:creator>JoshuaJohn</dc:creator>
      <dc:date>2017-04-27T17:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional for hidden panels</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Conditional-for-hidden-panels/m-p/352506#M22960</link>
      <description>&lt;P&gt;You need to slightly adjust your syntax. I would suggest renaming the token to be slightly more logical, like the following.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;drilldown&amp;gt;
   &amp;lt;condition match="'InUse' != &amp;amp;quot;true&amp;amp;quot;'&amp;gt;
     &amp;lt;set token="InUse"&amp;gt;true&amp;lt;/set&amp;gt;
   &amp;lt;/condition&amp;gt;
   &amp;lt;condition match="'InUse' == &amp;amp;quot;true&amp;amp;quot;'&amp;gt;
     &amp;lt;unset token="InUse"/&amp;gt;
   &amp;lt;/condition&amp;gt;
 &amp;lt;/drilldown&amp;gt;

...
&amp;lt;panel depends="$InUse$"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Apr 2017 17:43:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Conditional-for-hidden-panels/m-p/352506#M22960</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-04-27T17:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional for hidden panels</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Conditional-for-hidden-panels/m-p/352507#M22961</link>
      <description>&lt;P&gt;@JosuaJohn... Please try the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;drilldown&amp;gt;
      &amp;lt;condition match="$NotinUse$==&amp;amp;quot;true&amp;amp;quot;"&amp;gt;
        &amp;lt;unset token="NotinUse"&amp;gt;&amp;lt;/unset&amp;gt;
      &amp;lt;/condition&amp;gt;
      &amp;lt;condition&amp;gt;
        &amp;lt;set token="NotinUse"&amp;gt;true&amp;lt;/set&amp;gt;
      &amp;lt;/condition&amp;gt;
    &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Apr 2017 17:57:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Conditional-for-hidden-panels/m-p/352507#M22961</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-04-27T17:57:29Z</dc:date>
    </item>
  </channel>
</rss>

