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!

Announcing Scheduled Export GA for Dashboard Studio

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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...