A GitHub link has been provided to get the sample application, which demonstrates the rendering of dashboard available in your Bold BI server and followed by steps to create a new embedding application in the
Django on your own.
NOTE: The best way to get started would be reading the Getting Started section of the documentation. The
Getting Startedguide gives you enough information that you need to know before working on the sample.
Please get the Django sample from the attached file.
You need to set the following properties in the
models.py file as follows.
|RootUrl||Dashboard Server BI URL (ex: http://localhost:5000/bi, http://dashboard.syncfusion.com/bi)|
|SiteIdentifier||For Bold BI Enterprise edition, it should be like
|DashboardId||Provide the dashboard id of the dashboard that you want to embed here.|
|UserEmail||UserEmail of the Admin in your Bold BI, which will be used to get the dashboards list.|
|EmbedSecret||You can get your EmbedSecret key from embed tab by enabling
You can get your Embed Secret key from the administrator setting section. Please refer to this link for more details.
Run your Django application.
Based on the provided embed details with the dashboard, authorize the server URL by calling the get embed details function
(views.py/get_embed_details) call with the provided
Learn more about authorize server here
NOTE: Remove the CSRF Token from the headers, if your application does not have CSRF middleware
In the above authorization, generate the SignatureUrl using the provided EmbedSecret key and validate embed details in Bold BI. Once details are validated, the dashboard starts to render.
models.py, change the dashboard Id of the respective dashboard that you want to embed.