Dashboards & Visualizations

Populating two fields on drilldown dashboard from one click.value

pirateplunder
Engager

Hi

I have a table on a dashboard who's click.value is two numeric params joined like this:

NumA_NumB

I have a second dashboard that I want to drill down to from that table that has form inputs for NumA and NumB. 

Is there any way i can split the click.value and use it to populate the two form fields from the drilldown? I've tried using mvindex(split($click.value$,"_"),0) but it doesn't work. I can populate both the form fields with NumA_NumB but just can't work out how to split it. 

Labels (3)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

That mvindex call should work in an <eval> element within <drilldown>.

You also can use it in the destination search, but will have to use a named token rather than $click.value$.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

pirateplunder
Engager

Thats great and worked a treat...

<drilldown>
  <eval token="numA">mvindex(split($click.value$,"_"),0)</eval>
  <eval token="numB">mvindex(split($click.value$,"_"),1)</eval>
  <link target="_blank">....?form.NumA=$numA$&amp;form.NumB=$numB$</link>
</drilldown>

 

richgalloway
SplunkTrust
SplunkTrust

That mvindex call should work in an <eval> element within <drilldown>.

You also can use it in the destination search, but will have to use a named token rather than $click.value$.

---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...