Dashboards & Visualizations

how to send click.value as string even if its numeric

surekhasplunk
Communicator

Hi,

I am using a drilldown url like below, and in the riskscore_token i have values like "1/4" or "2/4" or "3/4" or "4/4" so when passing this to the drilldown page thats getting converted to riskscore_token="1597788000.000" which ideally should be riskscore_token="4/4"

https://url/app/drilldown_page?riskscore_token='$click.value$'

How to get rid of this passing exact string value and not as numeric

Thanks

Labels (2)
Tags (2)
0 Karma

Nisha18789
Builder

Hi @surekhasplunk , token value of "1/2" , "4/4" will work perfectly fine.

It appears that click.value is evaluating as 1/2 and not "1/2" and hence when riskscore_token is evaluated its getting the numerical value. Please update the click.value to have string value like "1/2"

https://url/app/drilldown_page?riskscore_token='$click.value$'

0 Karma

surekhasplunk
Communicator

Thanks @Nisha18789 

you mentioned "Please update the click.value to have string value like "1/2""

And how to do that ? where to update and how to update.

0 Karma

Nisha18789
Builder

Hi @surekhasplunk , could you please post the dashboard source code, where you are passing the token to the drill down url?

0 Karma
Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...