Hi Dave,
Thanks for using Syncfusion products.
You can integrate our Syncfusion dashboards into your application in two ways,
- Embed the Dashboards from Dashboard Server.
- Embed the Dashboards using Dashboard SDK.
Embed the Dashboards from Dashboard Server:
You can integrate the dashboard from Dashboard Server into your application by using Embedding Dashboards concept. Please refer the online help documentation link below,
To make use of this, you will need to pass username and password for authenticating the user. In case, you are using Windows authentication or Azure AD authentication in Dashboard Server, then the dashboards can be authenticated without passing the username and password.
Please refer the corresponding help documentation links below,
|
Windows AD Authentication |
|
|
Azure AD Authentication |
|
Embed the Dashboards using Dashboard SDK:
You can integrate and render the Dashboards in your application using Dashboard SDK. To achieve this, you will need user credentials for authentication and the Dashboard path.
To get the Dashboard location of the respective Dashboard, which is published in Dashboard Server, you have to access the Getitems API to get the list of Dashboards and pick the ‘itemlocation’ property to get the Dashboard location of your respective Dashboard. Please check the below link to access the API,
We have also created a sample application to get the dashboard path and you can download it from the below link,
In GetItems() method, you need to provide the dashboard name as shown in the below screenshot to get the dashboard path.
Please follow the below steps to render the Dashboard:
- Download the sample file from the below link.
- Pass the username of the Dashboard Server in the apiRequest.userid
- Pass the Password of the Dashboard Server in the apiRequest.password
- Replace the Dashboard path which is returned from the getitems API in the ‘window.DashboardPath’ variable as below.
- Now you can render the dashboard.
Thanks,
Mohamed Aslam