Dashboards & Visualizations

Dashboard Studio dashboard - script

jaburke1
Path Finder

Using the classic type dashboards I'm able to have simple script run on load of the dashboard by adding something like:

<dashboard script="App_Name:script_name.js" version="1.1">



But adding this to a dashboard created using Dashboard Studio the script does not run.

How do you get a script to run on load of a dashboard that was created with Dashboard Studio? 

 

Labels (1)
Tags (1)
0 Karma

WhiteTiger
New Member

Hi. A little late but you should try to go to Settings/User interface/Views, find your dashboard and click on its name. It will open the XML version of it with the header. version="2" tells that is a Dashboard Studio version.
Try to add your call to script there :

<dashboard script="App_Name:script_name.js" version="2" theme="dark">
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Customer success is front and center at .conf25

Hi Splunkers, If you are not able to be at .conf25 in person, you can still learn about all the latest news ...

.conf25 Global Broadcast: Don’t Miss a Moment

Hello Splunkers, .conf25 is only a click away.  Not able to make it to .conf25 in person? No worries, you can ...

Observe and Secure All Apps with Splunk

 Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...