Hi,
I am trying to create a dashboard with 2 drop down filters,
The issue is, is that I have a lingering hidden drop down panel which I only want to appear when a specific value from the 1st drop down is picked
Now when the 2nd drop down appears, I want to be able to further filter the entire dashboard based on its values,
However the annoying this is, is that the the 2nd drop downs values stick to the entire dashboard even when it is hidden, I only want its filtering capabilities to be enabled when the 1st drop downs specific value is picked,
So I think a solution would be to find a way to unset the token or remove that line of code in the search when the 2nd drop down is hidden however I can't seem to figure out a way to do this. I am using Splunk 6.5
Here is the current code for the drop downs
<input type="dropdown" token="journey_tkn" searchWhenChanged="true">
<label>Journey</label>
<choice value="*">NGA+MCA</choice>
<choice value="NGA">NGA</choice>
<choice value="MCA">MCA</choice>
<prefix>Journey=</prefix>
<default>NGA+MCA</default>
<initialValue>*</initialValue>
<change>
<condition label="MCA">
<set token="nga_show_tkn"></set>
<unset token="nga_hide_tkn"></unset>
</condition>
<condition label="NGA">
<unset token="nga_show_tkn"></unset>
<set token="nga_hide_tkn"></set>
</condition>
<condition label="*">
<unset token="nga_show_tkn"></unset>
<set token="nga_hide_tkn"></set>
</condition>
</change>
</input>
<input type="dropdown" token="mcatkn" searchWhenChanged="false" depends="$nga_show_tkn$">
<label>MCA Type</label>
<choice value="Telephony">Telephony</choice>
<choice value="Branch">Branch</choice>
<choice value="*">*</choice>
<prefix>MCAType=</prefix>
<suffix></suffix>
<change>
<condition value="*">
<unset token="mcatkn"></unset>
</condition>
</change>
</input>
and here is a sample search which uses the tokens from the drop downs
$tkn_index$ REQ="* " CLS="*" MSG="Get product types request handler ends"
| eval Journey=if(CH="****Retail" OR CH="****Retail" OR CH="****Retail" OR CH="****Retail", "NGA", "MCA")
| eval MCAType=case(CH="****RetailBranch" OR CH="****RetailBranch" OR CH="****RetailBranch" OR CH="****RetailBranch",
"Branch", CH="****RetailTelephony" OR CH="****RetailTelephony" OR CH="****RetailTelephony" OR CH="****RetailTelephony",
"Telephony")
| search $journey_tkn$ $mcatkn$
| stats dc(SID) as UniqueSessionCount
So I'd like to get get rid of $mcatkn$ when the 2nd dropdown is not in use (i.e hidden) because that causes there to be lingering filtering in the dashboard, I only want the 2nd dropdowns filter to be applied when the 1st drop downs specific value has been chosen (in this case when mca is picked, I want the 2nd dropdown panel to be displayed which it is, and then I want to be able to filter by Telephony or Branch, however when the 1st dropdown has nga or nga+mca picked, I want the 2nd drop down to disappear as well as the lingering filter being applied by it,
I hope this makes sense,
Any help will be greatly appreciated!
Please do help 🙂
... View more