This enables you to create dashboards directly within your application, offering an integrated and collaborative experience.
Before you begin, ensure the following:
embedSecret is highly sensitive and should never be exposed in frontend code, browsers, or client applications.Note: You can reuse the Embed Token generated for dashboard embedding case. Due to a current limitation, Embed Tokens are generated using a dashboardId but are not dashboard-specific; they are user-specific. This limitation will be addressed in a future release.
<div> in your frontend where the new Dashboard Designer will load. <body onload="embedSample();">
<div id="embed_container"></div>
<script>
function embedSample() {
var boldbiEmbedInstance = BoldBI.create({
serverUrl: "<Bold BI Server URL>",
mode:Bold.Mode.Design,
embedContainerId: "<Embed Container Id>",
embedToken: "<Embed token generated from backend server>"
});
boldbiEmbedInstance.loadDesigner();
}
</script>
</body>Note: For more information on designer members, methods, and events, refer to this link