# Event Script Gateway

**URL:** <https://forum.inductiveautomation.com/t/event-script-gateway/5058>\
**Category:** Ignition\
**Created:** [August 26, 2012, 5:04pm UTC](https://forum.inductiveautomation.com/t/event-script-gateway/5058 "2012-08-26T17:04:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joseph\_Mendonca](https://avatars.discourse-cdn.com/v4/letter/j/58f4c7/32.png) [@Joseph\_Mendonca](https://forum.inductiveautomation.com/u/Joseph_Mendonca)\
**Post date:** [August 26, 2012, 5:04pm UTC](https://forum.inductiveautomation.com/t/event-script-gateway/5058/1 "2012-08-26T17:04:11Z")

</div>

I have a script running in the event script gateway timer that simply increments a tag. Noticed that tag does not update its value in the sql browser. However, it does show that it’s updating when viewed in the tag diagnositc popup window. It does update to the current value when refreshing within the tag dagnostic popup window. It also updates in the sql tag browser when using the refresh on the sql tag browser tools. It does not update if you right click on the tag and refresh in the popup window. Why doesn’t it update the tag value in the browser? Works ok in the script playgound.

---

<div class="post-metadata">

**Author:** ![James.Lorenz](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/james.lorenz/32/3290_2.png) [@James.Lorenz](https://forum.inductiveautomation.com/u/James.Lorenz)\
**Post date:** [August 27, 2012, 9:57pm UTC](https://forum.inductiveautomation.com/t/event-script-gateway/5058/2 "2012-08-27T21:57:00Z")

</div>

I’m having a difficult time replicating this, what version of Ignition are you using?

---

<div class="post-metadata">

**Author:** ![Joseph\_Mendonca](https://avatars.discourse-cdn.com/v4/letter/j/58f4c7/32.png) [@Joseph\_Mendonca](https://forum.inductiveautomation.com/u/Joseph_Mendonca)\
**Post date:** [August 28, 2012, 12:05am UTC](https://forum.inductiveautomation.com/t/event-script-gateway/5058/3 "2012-08-28T00:05:29Z")

</div>

7.5.2 b1146 & the latest 7.5.3 beta. This executes every 5 sec. Works in the script playground but not in the event script gateway. Right click on the tag diagnostics and refresh you can see the tag incrementing but it is not incrementing in the sql tag browser.

`data = system.tag.read("testgwscript")
data.value = data.value + 1
system.tag.write("testgwscript", data)`

---

<div class="post-metadata">

**Author:** ![Joseph\_Mendonca](https://avatars.discourse-cdn.com/v4/letter/j/58f4c7/32.png) [@Joseph\_Mendonca](https://forum.inductiveautomation.com/u/Joseph_Mendonca)\
**Post date:** [August 28, 2012, 12:15am UTC](https://forum.inductiveautomation.com/t/event-script-gateway/5058/4 "2012-08-28T00:15:40Z")

</div>

Works with the following script. However, its strange why the previous script worked in the script playground.

`data = system.tag.read("testgwscript")
data = data.value + 1
system.tag.write("testgwscript", data)`

---

<div class="post-metadata">

**Author:** ![James.Lorenz](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/james.lorenz/32/3290_2.png) [@James.Lorenz](https://forum.inductiveautomation.com/u/James.Lorenz)\
**Post date:** [August 28, 2012, 5:09pm UTC](https://forum.inductiveautomation.com/t/event-script-gateway/5058/5 "2012-08-28T17:09:36Z")

</div>

Ok, now I see what you mean, thanks for posting your script. I was able to replicate the issue, I will talk to a developer to see why that tag won’t update in the browser.
