Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Nov 10, 2016 at 03:34 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 10, 2016 at 03:55 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 10, 2016 at 03:47 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded