Dashboards & Visualizations

Need home tab in dashboard to show all panels from other tabs not able to use multiple tokens in panel depends

venky1544
Builder
The issue is there are 3 tabs Home dataset and error
 
when i click dataset there appears panel showing dataset related panel
 
and similarly when i click error panel it shows the error related panel 
 
but when i click home i want both panels of dataset and error to appear for home 
 
i have tried using multiple token in panel depends based on the condition values but it seems not working  
 
Below is the my sourcecode for the dashboard
 
<form>
<label>test_token</label>
<fieldset submitButton="false">
<input type="time" token="field1">
<label>field1</label>
</input>
<input id = "input_link_split_by" type="link" token="unused" searchWhenChanged="true">
<label>Click</label>
<choice value="home">Home</choice>
<choice value="table">DATASET</choice>
<choice value="map">ERRORS</choice>
<default>home</default>
<change>
<condition value="home">
<set token="showHome">true</set>
<unset token="showTable"></unset>
<unset token="showMap"></unset>
</condition>
<condition value="table">
<set token="showTable">true</set>
<unset token="showHome"></unset>
<unset token="showMap"></unset>
</condition>
<condition value="map">
<set token="showMap">true</set>
<unset token="showTable"></unset>
<unset token="showHome"></unset>
</condition>
</change>
<initialValue>home</initialValue>
</input>
</fieldset>
<row>
<panel id="panel_layout">
<html>
<style>
/* This Layout Panel Bottom Padding removed to merge Link Input with horizontal line */
#panel_layout .fieldset{
padding: 10px 12px 0px 12px !important;
}
/* Increase width of Link input to have options in Single Line */
#input_link_split_by.input-link{
width: 720px !important;
}
/* Change from flex to -webkit-box for side by side layout */
#input_radio_split_by.input-link div[data-component="splunk-core:/splunkjs/mvc/components/LinkList"]{
display: -webkit-box !important;
}
/* Create Button Border to make them appear as Tabs */
#input_link_split_by.input-link button{
width: 120px !important;
border-top-color: black;
border-top-style: black;
border-top-width: 1px;
border-right-color: black;
border-right-style: black;
border-right-width: 1px;
border-left-color: black;
border-left-style: black;
border-left-width: 1px;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
}
/* Hide link input bottom message section to merge with Horizontal line */
.dashboard-panel #input_link_split_by label,
#input_link_split_by .splunk-choice-input-message{
display: none !important;
}
/* Remove padding from horizontal line */
#panel_layout .panel-body.html{
padding: 0px !important;
}
</style>
<hr style="height:1px;border-width:0;color: black;background-color: white;margin: 0px;"/>
</html>
</panel>
</row>
<row>
<panel depends="$showTable$">
<html>
<div style="text-align:center;">

<h1>Application DATASET</h1>
</div>

</html>

</panel>
</row>
<row>
<panel depends="$showMap$">
<html>
<div style="text-align:center;">
<h1>Application Errors</h1>
</div>
</html>
</panel>
</row>
</form>
Labels (3)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Not sure why aren't just setting both tokens?

<condition value="home">
<set token="showTable">true</set>
<set token="showMap">true</set>
</condition>

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust

Not sure why aren't just setting both tokens?

<condition value="home">
<set token="showTable">true</set>
<set token="showMap">true</set>
</condition>

venky1544
Builder

yup @ITWhisperer thats absolutely correct that was so lame of myself kind of brain fried 

thanks 

0 Karma
Get Updates on the Splunk Community!

Video | Welcome Back to Smartness, Pedro

Remember Splunk Community member, Pedro Borges? If you tuned into Episode 2 of our Smartness interview series, ...

Detector Best Practices: Static Thresholds

Introduction In observability monitoring, static thresholds are used to monitor fixed, known values within ...

Expert Tips from Splunk Education, Observability in Action, Plus More New Articles on ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...