Hello Experts ,
I am designing a DS dashboard where I have Charts as well as Text fields displaying key KPI values .
The dashboard need to have a refresh button which on click should open the prompt again and reload everything .
I have managed to display the refreshed charts which seem easy but the Text fields are not displaying the revised values .
Can you please suggest the right onclick formula I need to use to make it work ?
Thanks ,
Sourav Roy
Hi Sourav Roy,
To make the text component value refresh on passing prompts, you need to use the setText(); function again after passing the prompts. You can write this code in the data source on change.
But rather than passing the value by code, you can bind the values to the text value in the component by data binding option.
Let me know if you have any clarification in it.
Thanks,
Poovarasan
Hi Sourav Roy,
The place you have used will not possibly solve your requirement. You can write the code in the on result set change in data source property.
Then the value will update for every change in the value.
Thanks,
Poovarasan
Hello Poovarasan ,
Thanks for responding . I have tried both approached . Data Cell Binding and manually mapping the values using formula like this -
TEXT_8.setText("$"+INVTEXT.getData("00O2TNU9DGZ9LF03HKLY0JBZD", {}).formattedValue);
TEXT_3.setText(SALESTXT.getData("00O2TNU9DGZ9LDBIJMXDXVLPK", {}).formattedValue );
These formulas are kept in application startup as well as in the refresh onclick event script .
I think the Refresh button script has to be different ; Or the text fields need to be cleaned up first and then get populated again .
Let me know what I should do here.
Hi Sourav Roy,
Is that solution worked for you..?
Thanks,
Poovarasan