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!

Splunk Observability Cloud's AI Assistant in Action Series: Auditing Compliance and ...

This is the third post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

What You Read The Most: Splunk Lantern’s Most Popular Articles!

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