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!

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 ...