<?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 to load some panels only when everything is loaded or load them only when a checkbox is selected. in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-load-some-panels-only-when-everything-is-loaded-or-load/m-p/369280#M39770</link>
    <description>&lt;P&gt;checkbox is little different,  even when its not selected the token is value is still set to something.  Token should be unset for this to work.  Do unset of token during init of dashboard and test it.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Mar 2018 02:24:37 GMT</pubDate>
    <dc:creator>kyaparla</dc:creator>
    <dc:date>2018-03-22T02:24:37Z</dc:date>
    <item>
      <title>How to load some panels only when everything is loaded or load them only when a checkbox is selected.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-load-some-panels-only-when-everything-is-loaded-or-load/m-p/369276#M39766</link>
      <description>&lt;P&gt;I have three searches (tables) which show on the dashboard only when i select a check box on the top . But in the background they have already loaded. I do not want that, because that behaviour slows other panels. I only want those searches to run when the check box is selected.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 22:24:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-load-some-panels-only-when-everything-is-loaded-or-load/m-p/369276#M39766</guid>
      <dc:creator>macadminrohit</dc:creator>
      <dc:date>2018-03-20T22:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to load some panels only when everything is loaded or load them only when a checkbox is selected.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-load-some-panels-only-when-everything-is-loaded-or-load/m-p/369277#M39767</link>
      <description>&lt;P&gt;Searches can also take  depends token like the panels or rows.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;search id="search1" depends="$checkbox$"&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 22:43:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-load-some-panels-only-when-everything-is-loaded-or-load/m-p/369277#M39767</guid>
      <dc:creator>kyaparla</dc:creator>
      <dc:date>2018-03-20T22:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to load some panels only when everything is loaded or load them only when a checkbox is selected.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-load-some-panels-only-when-everything-is-loaded-or-load/m-p/369278#M39768</link>
      <description>&lt;P&gt;I have already done that but it still loads that in the background. I just don't want to load it unless I click on that check box. Here loading means , I don't even want that search to run before clicking the checkbox.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 23:34:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-load-some-panels-only-when-everything-is-loaded-or-load/m-p/369278#M39768</guid>
      <dc:creator>macadminrohit</dc:creator>
      <dc:date>2018-03-20T23:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to load some panels only when everything is loaded or load them only when a checkbox is selected.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-load-some-panels-only-when-everything-is-loaded-or-load/m-p/369279#M39769</link>
      <description>&lt;P&gt;Hi @macadminrohit ,&lt;/P&gt;

&lt;P&gt;If you want your searches run only after checkbox is selected, then you need to set a token on checkbox set and use it in your search so that the search will not run until that token is set.&lt;/P&gt;

&lt;P&gt;For e.g. &lt;CODE&gt;index=abc  "other search terms" $hereismytokenfromcheckbox$&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The token could be set to something which is always true so that your searches will be run as soon as the token is set&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 04:49:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-load-some-panels-only-when-everything-is-loaded-or-load/m-p/369279#M39769</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-03-21T04:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to load some panels only when everything is loaded or load them only when a checkbox is selected.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-load-some-panels-only-when-everything-is-loaded-or-load/m-p/369280#M39770</link>
      <description>&lt;P&gt;checkbox is little different,  even when its not selected the token is value is still set to something.  Token should be unset for this to work.  Do unset of token during init of dashboard and test it.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 02:24:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-load-some-panels-only-when-everything-is-loaded-or-load/m-p/369280#M39770</guid>
      <dc:creator>kyaparla</dc:creator>
      <dc:date>2018-03-22T02:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to load some panels only when everything is loaded or load them only when a checkbox is selected.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-load-some-panels-only-when-everything-is-loaded-or-load/m-p/369281#M39771</link>
      <description>&lt;P&gt;@macadminrohit, refer to Section 5 of this blog from Luke Murphy &lt;A href="https://www.splunk.com/blog/2015/03/30/making-a-dashboard-with-tabs-and-searches-that-run-when-clicked.html"&gt;https://www.splunk.com/blog/2015/03/30/making-a-dashboard-with-tabs-and-searches-that-run-when-clicked.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You can add the checkbox token to your search to prevent the search from running when the token is not set.&lt;/P&gt;

&lt;P&gt;One other example on similar lines would be something like the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;yourBaseSearch&amp;gt;
| &amp;lt;yourRemainingSearchWithStats&amp;gt;
| eval dummy="$&amp;lt;yourCheckBoxToken&amp;gt;$"
| fields - dummy
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This does not show the field &lt;CODE&gt;dummy&lt;/CODE&gt; in your search but adds a dependency with the token required to run the search. Hence if the Check Box is not checked your Search will keep &lt;CODE&gt;waiting for input&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 05:21:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-load-some-panels-only-when-everything-is-loaded-or-load/m-p/369281#M39771</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-03-22T05:21:40Z</dc:date>
    </item>
  </channel>
</rss>

