<?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 Load another panel when one row in a table is selected in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Load-another-panel-when-one-row-in-a-table-is-selected/m-p/296097#M3751</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Currently i have a search which actually generally a stats for the number of application installed on a server. The list of servers is coming from the inputlookup command.  This will give the number of apps installed on each host.&lt;/P&gt;

&lt;P&gt;index=main sourcetype="Script:InstalledApps"  [|inputlookup servers | rename Servers as host ]&lt;BR /&gt;
|  search DisplayName = Microsoft* | stats dc(DisplayName) by host&lt;/P&gt;

&lt;P&gt;Now i want to list all the apps when i select a row in the above stats table. So basically i want to load another panel below the stats table which will just give the list of installed apps for the host selected.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Mar 2018 21:13:17 GMT</pubDate>
    <dc:creator>macadminrohit</dc:creator>
    <dc:date>2018-03-28T21:13:17Z</dc:date>
    <item>
      <title>Load another panel when one row in a table is selected</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Load-another-panel-when-one-row-in-a-table-is-selected/m-p/296097#M3751</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Currently i have a search which actually generally a stats for the number of application installed on a server. The list of servers is coming from the inputlookup command.  This will give the number of apps installed on each host.&lt;/P&gt;

&lt;P&gt;index=main sourcetype="Script:InstalledApps"  [|inputlookup servers | rename Servers as host ]&lt;BR /&gt;
|  search DisplayName = Microsoft* | stats dc(DisplayName) by host&lt;/P&gt;

&lt;P&gt;Now i want to list all the apps when i select a row in the above stats table. So basically i want to load another panel below the stats table which will just give the list of installed apps for the host selected.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 21:13:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Load-another-panel-when-one-row-in-a-table-is-selected/m-p/296097#M3751</guid>
      <dc:creator>macadminrohit</dc:creator>
      <dc:date>2018-03-28T21:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Load another panel when one row in a table is selected</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Load-another-panel-when-one-row-in-a-table-is-selected/m-p/296098#M3752</link>
      <description>&lt;P&gt;Does this help?&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.3/Viz/tokens"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.3/Viz/tokens&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Access tokens to show or hide user interface components&lt;/P&gt;

&lt;P&gt;You can use token values to conditionally show or hide user interface components. The following elements contain the attributes depends and rejects. Use the  and  elements to set the token values that these attributes consume.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;row&amp;gt;
&amp;lt;panel&amp;gt;
&amp;lt;chart&amp;gt;
&amp;lt;event&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;map&amp;gt;
&amp;lt;single&amp;gt;
&amp;lt;table&amp;gt;
&amp;lt;input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For example, show the  element only when the showChart token has been set.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 21:43:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Load-another-panel-when-one-row-in-a-table-is-selected/m-p/296098#M3752</guid>
      <dc:creator>chaker</dc:creator>
      <dc:date>2018-03-28T21:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Load another panel when one row in a table is selected</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Load-another-panel-when-one-row-in-a-table-is-selected/m-p/296099#M3753</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;You can use the drilldown functionality.&lt;BR /&gt;
You have to activate drilldown on the first table. And for the specific host column set up a token used by the second table.&lt;/P&gt;

&lt;P&gt;You can even use "depends" in order to hide the panel when no row was selected.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;panel&amp;gt;
  &amp;lt;table&amp;gt;
    &amp;lt;title&amp;gt;main table&amp;lt;/title&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;index=main sourcetype="Script:InstalledApps" [|inputlookup servers | rename Servers as host ] | search DisplayName = Microsoft* | stats dc(DisplayName) by host&amp;lt;/query&amp;gt;
    &amp;lt;/search&amp;gt;
    &amp;lt;option name="count"&amp;gt;10&amp;lt;/option&amp;gt;
    &amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;
    &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
    &amp;lt;drilldown&amp;gt;
      &amp;lt;condition field="host"&amp;gt;
        &amp;lt;set token="hostName"&amp;gt;$click.value2$&amp;lt;/set&amp;gt;
      &amp;lt;/condition&amp;gt;
      &amp;lt;condition field="*"&amp;gt;
        &amp;lt;unset token="hostName"&amp;gt;&amp;lt;/unset&amp;gt;
      &amp;lt;/condition&amp;gt;
    &amp;lt;/drilldown&amp;gt;
  &amp;lt;/table&amp;gt;
&amp;lt;/panel&amp;gt;

&amp;lt;panel depends="$hostName$"&amp;gt;
    &amp;lt;table&amp;gt;
    &amp;lt;title&amp;gt;Detail table&amp;lt;/title&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;index=main sourcetype="Script:InstalledApps" host=$hostName$ ...&amp;lt;/query&amp;gt;
    &amp;lt;/search&amp;gt;
    &amp;lt;option name="count"&amp;gt;10&amp;lt;/option&amp;gt;
    &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
    &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
  &amp;lt;/table&amp;gt;
&amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Regards&lt;BR /&gt;
Régis&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2018 12:42:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Load-another-panel-when-one-row-in-a-table-is-selected/m-p/296099#M3753</guid>
      <dc:creator>ralzate</dc:creator>
      <dc:date>2018-03-29T12:42:57Z</dc:date>
    </item>
  </channel>
</rss>

