Text Box Changes

Hi, I have a number a simple text boxes in my screen that should change colour depending on state of digital io signals. I only use the state function in the behavior tab to condition the change. (one signal on and the other off). However on testing with VC, they only seem to change once, and then fail to change back if the IO signals are swapped back. Other text boxes work as expected, but are only set from a single signal changing from 1 to 0.


Am I doing it wrong? I have no user functions and no added code in the project.
BR Pat.

I’m not sure if I understood it correctly…

Maybe you need to add the opposite condition in the Behavior tab:

  • State 1: Signal_A == 1 AND Signal_B == 0Color A

  • State 2: Signal_A == 0 AND Signal_B == 1Color B

Once you add the second state, it will toggle back and forth perfectly.

Hello Yitong,
Some of the signals I’m using already have those condition’s in. Some do not, as there is not alternative to just monitoring one signal. The problem is the screen is not refreshing. If I change signal state and the signal on the tpu doesn’t change, after closing and reopening the screen the state is displayed correctyl. Do we need to add a refresh function (if possible), even though the tool tips states the signals are changed dynamically.

Hi Pat, thanks — that helps clarify the issue.

Normally, no manual refresh should be required. If the signal value changes but the screen only updates after reopening, then the problem is likely that the behavior is not refreshing dynamically.

Please try adding the opposite state explicitly, even for objects that currently only use one condition. If that still does not work, this may indicate a product limitation or bug rather than a setup issue.

If you still can’t resolve this issue or need to address it urgently, you can contact the support team: global-appstudiosupport@abb.com

Hello, This is AppStudio v1.3.0 UX bug.:exploding_head:

When the preview shows the component in a certain state (like with a green background), it’s natural for users to expect the actual component to look the same when that state is triggered.

In reality… user still need to manually change the style.

This point is somewhat misleading, and AppStudio will optimize this part in the future. :rofl::rofl:

Hi Yitong,

Thank you for the feed back. As suspected, I had done this wrong and missed thoese change of state tick boxes.
Regards, PAt