Tag value not updating after Tagwrite

Hello everyone,
I am facing a really odd issue. I build a text box where you can input a number and then with a button I will run a script to change the value of a memory tag. When I check the tag browser the value has changed but when a review the binding that it has been done using that tag the value is still the same. Is like the tag binding is not updating but the tag value is

The script is running from the onClick event from the green buttom:

system.tag.writeAsync("[default]Fabrica Motores/Almacenes/Metas/Motores_Pickeo_1",int(self.parent.getChild("Metas").getChild("Pickeo").getChild("Cantidad").props.text))

I haven't ran into this. What prop of the text box is bound to your memory tag? What type of binding is it? Is the binding on the value property of the tag?

Show us. We can only try to guess if we don't see what you're doing and how you're doing it.

My bad, i just updated the post to include more information

I am working with the classes property and I am using an expression binding:

if({[default]Fabrica Motores/Almacenes/Metas/Motores_Pickeo_1}<toint({this.props.text}),'JDStyleRed','JDStyleGreen')

What is the binding on props.text of label 82?

Is a query tag binding:

[default]Fabrica Motores/Almacenes/TO_250_SC

That's not a query though, did you mean just "tag binding" ?

I fail to see the problem here.
Let's try to clear things up:

  1. let's call "display" the label with 82 and "source" the label with 70
  2. when you click on the button, it takes the value from source and stores it in a tag
  3. that tag value is used to evaluate the color of display

If I understood correctly and the steps above are correct, everything in your screenshot looks as it should be. What would you expect to happen here and doesn't ?

2 Likes