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!

Updated Data Type Articles, Anniversary Celebrations, and More on Splunk Lantern

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

A Prelude to .conf25: Your Guide to Splunk University

Heading to Boston this September for .conf25? Get a jumpstart by arriving a few days early for Splunk ...

4 Ways the Splunk Community Helps You Prepare for .conf25

.conf25 is right around the corner, and whether you’re a first-time attendee or a seasoned Splunker, the ...