Skip to Content
0

Design Studio 1.6 : how to make text fields refresh when prompt values passed again

Nov 10, 2016 at 03:22 PM

240

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Poovarasan Boopalan Nov 10, 2016 at 03:34 PM
1

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

Share
10 |10000 characters needed characters left characters exceeded
Poovarasan Boopalan Nov 10, 2016 at 03:55 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
sourav roy Nov 10, 2016 at 03:47 PM
0

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.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Sourav Roy,

Is that solution worked for you..?

Thanks,

Poovarasan

0