Category / Section
How to Create a Dashboard Programmatically with Pre-configured Read-only Data sources?
Published:
This article explains how to create a dashboard programmatically with pre-configured read-only data sources.
To make a data source read-only while designing dashboard, you can disable the edit and delete icons near to the corresponding data source. For this, you need to pass false as value for canEdit and canDelete parameters in the corresponding data source attribute row item. Refer to this help document link to know more about this member API.
var dashboard = BoldBI.create({
datasources: [
{"id": "348e414b-c8c6-4542-839a-2e12934fe64f", "canEdit": false, "canDelete": false},
]
});
dashboard.loadDesigner();
Refer to this help document link to get the data source id.