Articles in this section
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();

image.png

Refer to this help document link to get the data source id.

Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
IJ
Written by Israel Jebaraj Chandirakumar
Updated:
Comments (0)
Please  to leave a comment
Access denied
Access denied