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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...