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!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...