- Update Shared Data Sources
- Add new Data Source
- Update Dashboard with Shared Data Sources
Contact Support
Shared Data Sources
This section explains about how to use shared Data Sources in existing Dashboard in the Syncfusion Dashboard Server.
Data sources are allowed to connect dashboards to different types of databases or middle-tier business objects.
Shared data source
the term indicates that the data sources can be shared with multiple dashboards. Examples of shared data sources are as follows,
- Used to switch between testing and production servers instantly
- Data sources can be shared across multiple Dashboards. If the database has moved or renamed or database server credentials has updated, it can be easier to update the data source which is shared with the multiple dashboards.
Shared data sources are optional for Dashboards and dashboards can be rendered with the embedded data source itself.
Update Shared Data Sources
To use shared Data Sources for a Dashboard, click on the Update Data Source(s)
option from the context menu.
Data Sources already used in the Dashboard along with the available Data Sources in the Server to choose are shown in the dialog box.
By default, all Dashboards use embedded Data Source.
Change the Data Source for Data Source Names available in the Dashboard by selecting it from drop down list or by adding new Data Source.
Dynamic Data Source Mapping
This can be achieved by assigning data sources for groups. The data source can be loaded dynamically based on the group of the current user.
-
If you select,
All users
option, then the data source you have added will be shared to all the users. -
If you select
Group
option, then you can see now an another dropdown which list all the active groups. From the dropdown you can map the data source to the group. -
Now click the
save
button to save the assigned data source for groups.Now the Dashboard will be loaded based on the the data source assigned to the group of the current user. -
Then the selected data source will be mapped with the particular group(s).You can see assigned groups in an assigned data sources tab.
-
You can edit the assigned data source for that particular group, using the
Edit
button, it will get you back to assign data source tab content. -
You can delete the assigned group for a data source(s),using the
Delete
button it will delete the assigned group and the group permission.
NOTE
If the shared data sources does not have permission for the current user, then the dashboard will not load.
Add new Data Source
New Data Source can be added by two ways,
- By searching with the Data Source names in the drop down. It suggests to add new Data Source, if the searched Data Source is not in the list. On clicking the ` (New Data Source) ` option opens the new Data Source dialog box.
- Click the plus (+) icon to open the new Data Source dialog box.
Select a Data Source file and add it.
The newly added Data Source is automatically selected for the specific Data Source Name.
On clicking the update button, the shared Data Sources are updated for the specific dashboard.
Here,
Data Source Name IPL_1 uses non-embedded Data Source.
Data Source Name IPL_2 uses embedded Data Source.
Update Dashboard with Shared Data Sources
On updating the version of the Dashboard with the Shared Data Source, a message box is displayed like below,
On clicking Yes
, displays update Data Source dialog for current version of Dashboard.
On clicking No
, the embedded Data Source is used for the current version.