In this tutorial let's see how a dashboard editor can create a dashboard with a banner, and how a dashboard viewer can view and customize the banner for his/her personal view.
Note |
---|
Before executing the steps mentioned in this tutorial, ensure to install the mandatory prerequisites and start the DS serverWSO2 Dashboard Server. |
Table of Contents |
---|
...
Excerpt |
---|
Step 1 - Sign into the WSO2 DS Management Console |
...
|
...
Step 2 - Create the dashboardEditorRole and |
...
dashboardViewerRole user roles
Step 3 - Create the editor and |
...
viewer user accounts
Step 4 - Assign the user roles to the user accounts
|
...
|
...
|
Step 5 - Create a Dashboard with a banner banner
- Sign into the Dashboard DesignerPortal.
The Dashboard Designer home page appears with the dashboards that are available for the respective user.
- Click Create Dashboard to navigate to the dashboard creation page.
- Enter the required dashboard related details and click Next.
- Name of your Dashboard - The name given to identify the dashboard.
- URL - The URL that is used to access the dashboard. The URL should be unique for each dashboard.
- Description - A summarized description on the dashboard.
Click on the Balanced Grid With Banner layout.
Click Add, select an image from the file browser window, and click Open.
The selected image appears in the block allocated for the banner, with the option to crop the image.Select the area of the image that needs to be cropped and click Save.
Click Settings and under the Permissions make the following changes:
Under Viewers add "dashboardViewerRole", and after the changes are saved remove all other user roles.
Under Editors add "dashboardEditorRole", and after the changes are saved remove all other user roles.
Tip When the default user roles (e.g., Internal/Everyone) are deleted, the existing user's admin privileges get revoked. Therefore, before removing the existing user roles (e.g., Internal/Everyone) of a dashboard, ensure to first save the new user roles.
Click View to go navigate to the dashboard view mode.
Log out and log in as the viewer, and click View to go navigate to the dashboard view mode.
Click Personalize Edit to navigate to the Dashboard Designer.
The original dashboard that already has a banner, which was uploaded by the editor, appears.Click Edit, select to select a different image from the file browser , and click OK.
Crop the image as necessary and click Save.
The banner placeholder displays the newly selected banner image with cropped margins.Click View to navigate to the dashboard view mode.
Now, the dashboard appears with the new banner, which was customized by the viewer.Click Personalize to navigate to the Dashboard the Dashboard Designer.
Click Reset to remove the custom banner and revert to the original banner, which was added by the dashboard editor.