How to intergrate the resposnsive dashboard with charts to my Project

I want to integrate the responsive Dash board in my project: https://demo.cuba-platform.com/dashboard/#!

I have already downloaded the zip code on: https://github.com/cuba-platform/sample-dashboard
please guide me on how to do it much faster and easier.

My project is in a way that we have several users who key in some data.
the users have their daily targets, then they are graded according to performance based
on KPI, every user needs to see the percentage of his/her output after the end of the day
displayed on the dashboard.Then the admin can see cumulative performance for everyone.
How can I achieve this using CUBA studio please, I believe it’s the best platform for
this purpose.

Hi,

Could you clarify what exact problem do you face? Is there any problem with code integration from dashboard demo or you need some guides on how to obtain different data for different users?

Hi, made my way out with the responsive dashboard.
However, there is yet some doubts I would wish you to help me in if possible, with an example.
1. For example how to display information for serial charts from a database, depending on the rights assigned to a particular user.
2. using the notification bell to alert a particular user when a message/ task is assigned to him
her
3. my dash board leaves a wide a wide space at the middle, (see the screenshot)
4. I also need to make the button for start, point to home instead of taking me to a new window, please direct me since I can’t reach the line targeting to blank.
I have attached my xml and java files here too.
Tscreenshotext-mainwindow.xml (25.6 KB)
ExtAppMainWindow.java (9.1 KB)
hanks in advance

my dash board leaves a wide a wide space at the middle, (see the screenshot)

I see some component placed between charts and map, so you need to extend either charts box or map / mapBox to avoid blank space. You can learn more about layout rules from our UI Development video (starting from 23:20)

For example how to display information for serial charts from a database, depending on the rights assigned to a particular user

In order to restrict user access to entity instances you can use Access Groups and Constraints. The sample-saas demo app demonstrates an approach to the creation of a multi-tenant CUBA application using Access Groups.

I also need to make the button for start, point to home instead of taking me to a new window

Could you explain in more details what you want to achieve?

1 Like

Hi there,
Thank you for your reply, I managed most of the issues I raised, however, the only remaining is that NewWindowButton, may be to put my point clear, I wanted to have a way that my button closses all the tabs for screens opened so that I get back to the Dashboard page, any idea on how to achieve that easily? I appreciate your feedback.

Hi, I made it all finally, I used the closeAllTabbedWindows() method and it worked like charm,
thank you, I will be back when I get more challenges, am liking cuba anyway!!

1 Like