<?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 Check boxes using advanced module in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Check-boxes-using-advanced-module/m-p/137846#M8280</link>
    <description>&lt;P&gt;I need to provide check boxes with varying number of options depending on what value i select in a drop down. the drop down value is then passed to the query to get the list of options to display in check box. Am using advanced module to build my dashboard. Is there any way to do this without using sideview utils?&lt;/P&gt;</description>
    <pubDate>Tue, 22 Apr 2014 08:17:09 GMT</pubDate>
    <dc:creator>vaishnavi07</dc:creator>
    <dc:date>2014-04-22T08:17:09Z</dc:date>
    <item>
      <title>Check boxes using advanced module</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Check-boxes-using-advanced-module/m-p/137846#M8280</link>
      <description>&lt;P&gt;I need to provide check boxes with varying number of options depending on what value i select in a drop down. the drop down value is then passed to the query to get the list of options to display in check box. Am using advanced module to build my dashboard. Is there any way to do this without using sideview utils?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2014 08:17:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Check-boxes-using-advanced-module/m-p/137846#M8280</guid>
      <dc:creator>vaishnavi07</dc:creator>
      <dc:date>2014-04-22T08:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Check boxes using advanced module</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Check-boxes-using-advanced-module/m-p/137847#M8281</link>
      <description>&lt;P&gt;Please let me know if anyway is there to do this.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2014 08:47:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Check-boxes-using-advanced-module/m-p/137847#M8281</guid>
      <dc:creator>vaishnavi07</dc:creator>
      <dc:date>2014-04-22T08:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Check boxes using advanced module</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Check-boxes-using-advanced-module/m-p/137848#M8282</link>
      <description>&lt;P&gt;Depending on the specifics, you need to be certain at least one result will occur in your search. I'm using a similar dynamic checkbox list to display sourcetypes.&lt;/P&gt;

&lt;P&gt;my search is 5 searches (four are appended to the first) just to get my "List" of checkboxes.&lt;/P&gt;

&lt;P&gt;&amp;lt;input type="checkbox" searchWhenChanged="true" token="VisibleRows"&amp;gt;&lt;BR /&gt;
   &amp;lt;search id="Check"&amp;gt;&lt;BR /&gt;
      &lt;QUERY&gt;index=$Index$ $HowFarBack$ sourcetype="mySource1" | fields sourcetype | head1 | stats dc(sourcetype) as Checklist by sourcetype | eval Checklist=if(Checklist&amp;gt;0,"MyCheckbox1","") | table Checklist | append [search index=$Index$ $HowFarBack$ sourcetype="mySource2" | fields sourcetype | head1 | stats dc(sourcetype) as Checklist by sourcetype | eval Checklist=if(Checklist&amp;gt;0,"MyCheckbox2","") | table Checklist] | append [search index=$Index$ $HowFarBack$ sourcetype="mySource3" | fields sourcetype | head1 | stats dc(sourcetype) as Checklist by sourcetype | eval Checklist=if(Checklist&amp;gt;0,"MyCheckbox3","") | table Checklist] | append [search index=$Index$ $HowFarBack$ sourcetype="mySource4" | fields sourcetype | head1 | stats dc(sourcetype) as Checklist by sourcetype | eval Checklist=if(Checklist&amp;gt;0,"MyCheckbox4","") | table Checklist] | append [search index=$Index$ $HowFarBack$ sourcetype="mySource5" | fields sourcetype | head1 | stats dc(sourcetype) as Checklist by sourcetype | eval Checklist=if(Checklist&amp;gt;0,"MyCheckbox5","") | table Checklist]&lt;/QUERY&gt;&lt;BR /&gt;
   &amp;lt;/search&amp;gt;&lt;BR /&gt;
   &amp;lt;fieldForLabel&amp;gt;Checklist&amp;lt;/fieldForLabel&amp;gt;&lt;BR /&gt;
   &amp;lt;fieldForValue&amp;gt;Checklist&amp;lt;/fieldForValue&amp;gt;&lt;BR /&gt;
   &amp;lt;default&amp;gt;None&amp;lt;/default&amp;gt;&lt;BR /&gt;
&amp;lt;/input&amp;gt;&lt;/P&gt;

&lt;P&gt;The default for $Index$ is *&lt;BR /&gt;
The default for $HowFarBack$ is earliest=-14d@d latest=now&lt;BR /&gt;
The token for $Index$ is produced by a dropdown, and $HowFarBack$ is produced by a static radio list&lt;BR /&gt;
The number of results in Checklist will produce the same list of checkbox values/labels&lt;/P&gt;

&lt;P&gt;With this search, if there is no "mySource1" then the line will yield zero $job.resultCount$ and there will be no results for Checklist (which is preferable to a blank line in my case because one of the sourcetypes will appear in Checklist, just not necessarily all five).&lt;/P&gt;

&lt;P&gt;Essentially the search yields dynamic results (but in this case a single field named Checklist will hold the entire list of results), which will end up as a checkbox for each result.&lt;/P&gt;

&lt;P&gt;Hope this Helps.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2016 15:45:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Check-boxes-using-advanced-module/m-p/137848#M8282</guid>
      <dc:creator>ArthurGautesen</dc:creator>
      <dc:date>2016-03-11T15:45:09Z</dc:date>
    </item>
  </channel>
</rss>

