on ‎2017 Sep 11 7:30 PM - last edited on ‎2024 Feb 04 1:50 AM by postmig_api_4
Below is a screenshot of the dashboard I am currently developing. My issue is with data binding for the gauges. My selectors on the left is supposed to control the data that feed into the bar graphs and the gauges. The bar graphs are responding dynamically based on the value selected from the selectors, but the gauges are not. Here are the things I've tried so far:
1. I used data binding for each gauge. First, I created a global script function that retrieves the data from the data source based on the user selection (I used the .getdata() function and assigned the value in global variables -- each gauge has a unique value; therefore, each gauge has its own variable.).
2. I called the global function when the "Salary Analysis" tab is selected. I then used formatter function to return the value of the variable from the global function. So far, the gauges show the correct values when I first click on the "Salary Analysis" tab, but the values don't change when I change the values of the selectors.
3. I then tried to call the same global function for each selector (I added the function to the "On Select" event scipt) hoping that the global function will be executed and change the values of each variable that are eventually assigned to the gauges, but with no success.
It looks like my other option is to create a button that will execute the global function, but I am trying to avoid that because the customer wants to see data change quickly without having to press a button (i.e. Apply) to see the change. I'm sure there is a way I can make this happen. I have only been using Design Studio for about 2 months now (I used to develop in Xcelsius), so I am not completely familiar with DS just yet. I hope someone can give me some ideas on how to make the gauges to work or the data binding to work dynamically. Thank you!

Request clarification before answering.
Hi Alexandra,
I cant replicate the issue on my end as i dont have Guage component. I had demo from few vendors in the past but we didn't finalize yet.
However we had similar use case to make Guage dynamic by binding property or using script. May i know where can i get similar Guages as yours please?
Regards,
Fahad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The gauge component is part of the SCN SDK that I downloaded from SAP since design studio doesn't have a gauge component out of the box. I downloaded it from this link:
https://blogs.sap.com/2015/12/22/scn-design-studio-16-sdk-components-ver-30/
(I just noticed that there is a better version for Lumira 2.0. We will upgrade to 2.0 by the end of this month and download the latest version of the sdk).
| User | Count |
|---|---|
| 13 | |
| 8 | |
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.