Dashboards & Visualizations

Why is the token in refresh property crashing Dashboard Studio?

JiveCatDaddyO
New Member

Hello friends!

I am working on a dashboard in Dashboard Studio and I would like to use a token collected from a dropdown input for the 'refresh' property in the code. However, whenever I enter the token value into the 'refresh'  property and click 'Back', the dashboard just shows a white screen and never loads again. Although the code editor accepts the code, it appears to crash the dashboard.

I am trying to use the token in the default options like so:

 

 

"defaults": {
		"dataSources": {
			"ds.search": {
				"options": {
					"queryParameters": {
						"latest": "$global_time.latest$",
						"earliest": "$global_time.earliest$"
					},
					"refresh": "$interval$",
					"refreshType": "delay"
				}
			}
		}
	},

 

 

Here's my code for the dropdown:

 

 

"input_wdjDPusg": {
			"options": {
				"items": [
					{
						"label": "1 Minute",
						"value": "1m"
					},
					{
						"label": "5 Minutes",
						"value": "5m"
					},
					{
						"label": "10 Minutes",
						"value": "10m"
					}
				],
				"token": "interval",
				"defaultValue": "1m"
			},
			"title": "Refresh Rate",
			"type": "input.dropdown"
		}

 

 

 Is anyone else able to recreate this issue, or able to tell me what I'm doing wrong?

Thank you!

Labels (3)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

If it were SimpleXML, I might suggest adding an initial value to the drop down or setting the form.interval token in an init block at the top of the dashboard definition. I am not sure how you would do either of these in Studio, perhaps you can investigate 😀

0 Karma

JiveCatDaddyO
New Member

Hello! Thanks for giving this question some attention!

I thought this line would be setting the initial value?

"defaultValue": "1m"

 I'll also look into whether/how init blocks may be used with Studio: if nothing else, I suppose I can recreate the dashboard in the Classic editor.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

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

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...