Publish or Save dialog has been created and used in dashboard designer embedding. Follow the given steps to apply in your environment.
Please download the ASP.NET Core Sample.
Provide your embed properties details in the
EmbedProperties.cs file, then run your application.
|RootUrl||Dashboard Server BI URL (ex: http://localhost:5000/bi, http://demo.boldbi.com/bi)|
|SiteIdentifier||For Bold BI Enterprise edition, it should be like site/site1. For Bold BI Cloud, it should be empty string.|
|Environment||For Bold BI application environment (if Cloud, it should be like `cloud`, if Enterprise, it should be like `enterprise`)|
|DashboardId||Dashboard id which you want to render in the applciation.|
|UserEmail||UserEmail of the Admin in your Bold BI, which would be used to get the dashboards list.|
|EmbedSecret||Get your EmbedSecret key from the Embed tab by enabling the
To open your own Publish dialog, use the
actionBegin event while creating the Bold BI object as follows.
While clicking the
Publish button from the designer, the actionBegin event would be triggered with the type value as
PublishAsAction, where the dialog has been created using EJ2 controls(Dropdown, Textbox, and Button).
To get the categories information such as category name and category id, the
getDashboardCategories() method has been called as follows. For more information, see getDashboardCategories().
Once you get the category list, bind to the DropdownList of the
Select Category, and it will appear as a selection option.
A new popup has been created for creating a new category, which will appear when clicking the
add icon in the publish dialog.
Get the inputs of the
category Name and
Description from creating category dialog and creating a new category using the
createDashboardCategory() method available in Bold BI. For more information, see createDashboardCategory().
For saving or publishing the dashboard with given details, call the
saveDashboard() method by passing the
description as parameters as follows. For more information, see saveDashboard().
Now, your new dashboard will be published into a respective category. The same method will be used to
Publish the existing dashboard and
PublishAs the new dashboard from the existing one.