<?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: Show panel when checkbox is checked in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Show-panel-when-checkbox-is-checked/m-p/146038#M8899</link>
    <description>&lt;P&gt;Thank for your reply.&lt;/P&gt;

&lt;P&gt;But, what we want to do is to have a input to select which panel we want to show on a total of posibilities. By example i can check to see the memory panel, the disk usage.....so in my dashboard..only this 2 panel are displayed of the total panels. We want more like a hide/show panel mechanism, but if we do it in pure javascript, the chart will probably be rendered so we try to avoid that...&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jun 2015 17:12:39 GMT</pubDate>
    <dc:creator>david_poulin</dc:creator>
    <dc:date>2015-06-09T17:12:39Z</dc:date>
    <item>
      <title>Show panel when checkbox is checked</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Show-panel-when-checkbox-is-checked/m-p/146036#M8897</link>
      <description>&lt;P&gt;We have a dashboard including a couple of server informations (processes, processor, memory...etc) and we want to select the panel that need to be display with a checkbox...&lt;/P&gt;

&lt;P&gt;for sure we can propably do it with html and javascript....but that will only mask the panel and chart. In our case, we want, if it&amp;lt;s possible, to be sure that the chart is not rendered if the panel is not displayed&lt;/P&gt;

&lt;P&gt;is there any way ?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2015 14:49:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Show-panel-when-checkbox-is-checked/m-p/146036#M8897</guid>
      <dc:creator>david_poulin</dc:creator>
      <dc:date>2015-06-09T14:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Show panel when checkbox is checked</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Show-panel-when-checkbox-is-checked/m-p/146037#M8898</link>
      <description>&lt;P&gt;I believe you can use a simple xml form and using in-page Drilldown with Perma-link.   Below is an example with input type of text, but you could change it to use checkbox.  The bottom chart use attribute depends to delay render/ search.  This example can be found in the  &lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;simple xml app&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
    &amp;lt;label&amp;gt;In-Page Drilldown with Perma-linking&amp;lt;/label&amp;gt;
    &amp;lt;fieldset submitButton="false"&amp;gt;
        &amp;lt;!--
            Create an input to store the drilldown value. It will be hidden using custom javascript when
            the dashboard is loaded.
         --&amp;gt;
        &amp;lt;input type="text" token="sourcetype" searchWhenChanged="true" /&amp;gt;
    &amp;lt;/fieldset&amp;gt;
    &amp;lt;row&amp;gt;
        &amp;lt;table id="master"&amp;gt;
            &amp;lt;title&amp;gt;Master&amp;lt;/title&amp;gt;
            &amp;lt;searchString&amp;gt;index=_internal | stats count by sourcetype&amp;lt;/searchString&amp;gt;
            &amp;lt;earliestTime&amp;gt;-60m@m&amp;lt;/earliestTime&amp;gt;
            &amp;lt;latestTime&amp;gt;now&amp;lt;/latestTime&amp;gt;
            &amp;lt;!-- Set the type of of drilldown, since we will always consume the same field, use row--&amp;gt;
            &amp;lt;option name="drilldown"&amp;gt;row&amp;lt;/option&amp;gt;
            &amp;lt;drilldown&amp;gt;
                &amp;lt;!-- Use set to specify the new token to be created.
                     Use any token from the page or from the click event to produce the value needed. --&amp;gt;
                &amp;lt;set token="sourcetype"&amp;gt;$row.sourcetype$&amp;lt;/set&amp;gt;
                &amp;lt;!-- If we also set the form.sourcetype the input will get updated too --&amp;gt;
                &amp;lt;set token="form.sourcetype"&amp;gt;$row.sourcetype$&amp;lt;/set&amp;gt;
            &amp;lt;/drilldown&amp;gt;
        &amp;lt;/table&amp;gt;
    &amp;lt;/row&amp;gt;
    &amp;lt;row&amp;gt;
        &amp;lt;!-- depends is the way we tell the content to only show when the token has a value.
             Hint: use comma separated values if the element requires more than one token. --&amp;gt;
        &amp;lt;chart id="detail" depends="$sourcetype$"&amp;gt;
            &amp;lt;title&amp;gt;Detail: $sourcetype$&amp;lt;/title&amp;gt;
            &amp;lt;searchTemplate&amp;gt;index=_internal sourcetype=$sourcetype$ | timechart count&amp;lt;/searchTemplate&amp;gt;
            &amp;lt;earliestTime&amp;gt;-60m@m&amp;lt;/earliestTime&amp;gt;
            &amp;lt;latestTime&amp;gt;now&amp;lt;/latestTime&amp;gt;
        &amp;lt;/chart&amp;gt;
    &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Jun 2015 16:47:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Show-panel-when-checkbox-is-checked/m-p/146037#M8898</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2015-06-09T16:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Show panel when checkbox is checked</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Show-panel-when-checkbox-is-checked/m-p/146038#M8899</link>
      <description>&lt;P&gt;Thank for your reply.&lt;/P&gt;

&lt;P&gt;But, what we want to do is to have a input to select which panel we want to show on a total of posibilities. By example i can check to see the memory panel, the disk usage.....so in my dashboard..only this 2 panel are displayed of the total panels. We want more like a hide/show panel mechanism, but if we do it in pure javascript, the chart will probably be rendered so we try to avoid that...&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2015 17:12:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Show-panel-when-checkbox-is-checked/m-p/146038#M8899</guid>
      <dc:creator>david_poulin</dc:creator>
      <dc:date>2015-06-09T17:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Show panel when checkbox is checked</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Show-panel-when-checkbox-is-checked/m-p/146039#M8900</link>
      <description>&lt;P&gt;Then your only real option is to use a HTML embedded tag and write a Javascript extension similar to the Single Value Tend in the simple XML app.  You can still use simple xml, but you have to write javascript extensions.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2015 17:30:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Show-panel-when-checkbox-is-checked/m-p/146039#M8900</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2015-06-09T17:30:42Z</dc:date>
    </item>
  </channel>
</rss>

