cancel
Showing results for 
Search instead for 
Did you mean: 

Jump to dashboard - Open New Window

Yeg2023
7 - Data Storage
7 - Data Storage

Hello, 

I am trying to write a script that will allow me to use the "jump to dashboard" function - but instead of having it open in a pop-up window. I want it to be a new tab in same window. 

 

Any help? 

2 REPLIES 2

HamzaJ
12 - Data Integration
12 - Data Integration

Hey @Yeg2023 ,

I dont know if I understood you correctly, however within the JTD config and on a widgetscript level you can use the drilledDashboardDisplayType parameter to change the behaviour. 

Default Value: 1

Possible Values:

1 New tab

2 Popup window

3 Current tab

stevediaz
8 - Cloud Apps
8 - Cloud Apps

Hello

Check below-

<!DOCTYPE html> <html> <head> <title>Jump to Dashboard</title> </head> <body> <a id="dashboardLink" href="#">Jump to Dashboard</a> <script> var dashboardUrls = { dashboard1: "https://your-sisense-environment/dashboard1", dashboard2: "https://your-sisense-environment/dashboard2/ ccsp training " }; document.getElementById("dashboardLink").addEventListener("click", function(event) { event.preventDefault(); var dashboardKey = 'dashboard1'; var dashboardUrl = dashboardUrls[dashboardKey]; window.open(dashboardUrl, "_blank"); }); </script> </body> </html>

Replace the placeholder URLs with your actual Sisense dashboard URLs, and you can add more URLs to the dashboardUrls object as needed. This script will allow you to open Sisense dashboards in new tabs within the same window when the "Jump to Dashboard" link is clicked.

Thank you.