cancel
Showing results for 
Search instead for 
Did you mean: 
Community_Admin
Community Team Member
Community Team Member

Question

I am trying to make it a widget button and switch the dashboard once it was clicked. Is there a way to achieve it?

Answer

You can use this script. It uses the standard BloX OpenURL action and will build and style a web page opening button. To try it create a new BloX widget and replace all the Editor pane script with this script.  You can change the target parameter if you want to open in a different window, etc.  _self opens in same window.  This should allow you to navigate to another dashboard by clicking the button.  

You can add additional action blocks to add more buttons with additional URL's if you want to build a navigation page with buttons.

{
"style": "",
"script": "",
"title": "",
"showCarousel": true,
"carouselAnimation": {
    "showButtons": false
},

"actions": [
{
"type": "Action.OpenUrl",
"style": {
"color": "#3794de",
"fontWeight": "default",
"backgroundColor": "#ffff",
"border-style": "solid",
"border-color": "#3794de",
"border-radius": "1px",
"border-width": "1px"
},
"title": "Sisense Labs",
"target": "_self",
"url": "https://www.sisense.com/sisense-labs/"
}
]
}

 

Version history
Last update:
‎10-19-2021 01:51 AM
Updated by:
Contributors
Community Toolbox

Recommended quick links to assist you in optimizing your community experience:

Developers Group:

Product Feedback Forum:

Need additional support?:

Submit a Support Request

The Legal Stuff

Have a question about the Sisense Community?

Email [email protected]

Share this page: