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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...