# Tag value not updating after Tagwrite

**URL:** <https://forum.inductiveautomation.com/t/tag-value-not-updating-after-tagwrite/68275>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [January 5, 2023, 7:18pm UTC](https://forum.inductiveautomation.com/t/tag-value-not-updating-after-tagwrite/68275 "2023-01-05T19:18:19Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![gsconfienza](https://avatars.discourse-cdn.com/v4/letter/g/2acd7d/32.png) [@gsconfienza](https://forum.inductiveautomation.com/u/gsconfienza)\
**Post date:** [January 5, 2023, 7:18pm UTC](https://forum.inductiveautomation.com/t/tag-value-not-updating-after-tagwrite/68275/1 "2023-01-05T19:18:19Z")

</div>

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

 ![Snap1](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/b/abaf562f0a452d5a74f73dab44ecfd15e1512e4e.png)

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))

```

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [January 6, 2023, 12:45am UTC](https://forum.inductiveautomation.com/t/tag-value-not-updating-after-tagwrite/68275/2 "2023-01-06T00:45:03Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [January 6, 2023, 7:55am UTC](https://forum.inductiveautomation.com/t/tag-value-not-updating-after-tagwrite/68275/3 "2023-01-06T07:55:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![gsconfienza](https://avatars.discourse-cdn.com/v4/letter/g/2acd7d/32.png) [@gsconfienza](https://forum.inductiveautomation.com/u/gsconfienza)\
**Post date:** [January 6, 2023, 11:13am UTC](https://forum.inductiveautomation.com/t/tag-value-not-updating-after-tagwrite/68275/4 "2023-01-06T11:13:24Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![gsconfienza](https://avatars.discourse-cdn.com/v4/letter/g/2acd7d/32.png) [@gsconfienza](https://forum.inductiveautomation.com/u/gsconfienza)\
**Post date:** [January 6, 2023, 11:17am UTC](https://forum.inductiveautomation.com/t/tag-value-not-updating-after-tagwrite/68275/5 "2023-01-06T11:17:37Z")

</div>

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')`

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [January 6, 2023, 12:29pm UTC](https://forum.inductiveautomation.com/t/tag-value-not-updating-after-tagwrite/68275/6 "2023-01-06T12:29:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![gsconfienza](https://avatars.discourse-cdn.com/v4/letter/g/2acd7d/32.png) [@gsconfienza](https://forum.inductiveautomation.com/u/gsconfienza)\
**Post date:** [January 6, 2023, 1:06pm UTC](https://forum.inductiveautomation.com/t/tag-value-not-updating-after-tagwrite/68275/7 "2023-01-06T13:06:34Z")

</div>

Is a query tag binding:

```auto
[default]Fabrica Motores/Almacenes/TO_250_SC

```

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [January 6, 2023, 1:53pm UTC](https://forum.inductiveautomation.com/t/tag-value-not-updating-after-tagwrite/68275/8 "2023-01-06T13:53:36Z")

</div>

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 ?
