How to Resolving Dashboard Loading issues in Bold BI Embedding.
Resolving Dashboard Loading Issues in Bold BI Embedding
Occasionally, dashboard loading issues may occur in Bold BI embedding. This article will guide you through the steps to resolve these issues.
Problem
The issue occurs randomly and only during the initial rendering of the dashboard. It is observed that the issue arises when loading another dashboard from the dashboard listing page before the previous dashboard completes its rendering.
Solution
To resolve this issue, it is suggested to destroy the previous dashboard instance before rendering another dashboard.
Make sure to verify the embedContainerId
given in BoldBI.create()
within your embedded application. It is possible that the embed container might be removed while obtaining the instance
. Therefore, ensure that getInstance
functions properly before the embed container ID is removed from your embedded application for the previously loaded dashboards.
To avoid issues in your current situation, it is recommended to follow the if condition in the code snippet provided below before destroying the instance
.
Code Snippet:
var instance = BoldBI.getInstance('widget-container1'); // Here “widget-container1” denotes the dashboard container ID given in the BoldBI.create()
if(instance != null || instance != undefined)
{
instance.destroy()
}
By implementing these changes, you should be able to resolve the dashboard loading issue in Bold BI embedding.