This method will initialize the Dashboard Viewer options and returns the object for rendering the dashboard.
Example
var dashboard = BoldBI.create({
serverUrl: "http://localhost:51777/bi/site/site1",
dashboardId: "755e99c7-f858-4058-958b-67577b283309",
embedContainerId: "dashboard-container",// This should be the container id where you want to embed the dashboard
embedType: BoldBI.EmbedType.Component,
environment: BoldBI.Environment.Enterprise,
height: "800px",
width: "1200px",
authorizationServer: {
url: "http://example.come/authorize/server"
},
expirationTime: "100000",
});
This method will render the dashboard based on the dashboard options provided while calling the create method.
Example
var dashboard = BoldBI.create(options);
dashboard.loadDashboard();
This method will destroy the dashboard based on the dashboard object provided while calling the create method.
Example
var dashboard = BoldBI.create(options);
dashboard.loadDashboard();
dashboard.destroy();
This method will return the object of the rendered dashboard using the container id assigned to the dashboard options.
Example
<div id="container"></div>
<script>
var dashboard = BoldBI.create({
embedContainerId: "container",
});
dashboard.loadDashboard();
dashboard.getInstance("container");
</script>
This method will load the widget of current dashboard.
Example
var dashboard = BoldBI.create(options);
dashboard.loadDashboard();
dashboard.loadDashboardWidget("Sales by country");
This method will update the filter parameters of current dashboard. learn more details
Example
var dashboard = BoldBI.create(options);
dashboard.loadDashboard();
dashboard.updateFilters("Continent=Asia,Africa,Europe");
This method will refresh the current dashboard.
Example
var dashboard = BoldBI.create(options);
dashboard.loadDashboard();
dashboard.refreshDashboard();