Forum Discussion

Apd2024's avatar
Apd2024
Data Storage
08-09-2023

Jump to dashboard - Open New Window

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

Replies have been turned off for this discussion
  • HamzaJ's avatar
    HamzaJ
    Data Integration

    Hey Apd2024 ,

    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

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