# \[SOLVED\] Open window in script tag changed

**URL:** <https://forum.inductiveautomation.com/t/solved-open-window-in-script-tag-changed/63653>\
**Category:** Ignition\
**Tags:** vision, ignition81\
**Created:** [August 31, 2022, 8:30pm UTC](https://forum.inductiveautomation.com/t/solved-open-window-in-script-tag-changed/63653 "2022-08-31T20:30:10Z")\
**Posts on this page:** 1\
**Showing post:** 20

<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:** [September 30, 2022, 12:54am UTC](https://forum.inductiveautomation.com/t/solved-open-window-in-script-tag-changed/63653/20 "2022-09-30T00:54:57Z")

</div>

> [@Esmeralda\_Lopez](#):
>
> the value of the label 1 is the previous value and is not changing to the current value at the first time

I was unable to replicate the behavior testing in a live session using this code for my internalFrameOpened event handler:

```auto
tagPaths = ['[default]app_tags/Componentes/ArranquePedidos/Alarma_Canal_Vacio','[default]app_tags/Componentes/ArranquePedidos/Alarma_Sector_Vacio']
tgCanal, tgSector = [qval.value for qval in system.tag.readBlocking(tagPaths)]
system.gui.getParentWindow(event).getComponentForPath('Root Container.lblCanalTag').text = tgCanal
system.gui.getParentWindow(event).getComponentForPath('Root Container.lbSectorTag').text = tgSector

```

In my test, I used the Alarma\_Canal\_Vacio tag to trigger the tag change event script. Both tags are string datatype. I did remove the `if tgCanal:` statement from the code because that doesn't seem to be needed, but when I went back and tried the script with the if statement, I still got the expected result. Do you see anything in my experiment that differs from your approach?

---

_[View the full topic](https://forum.inductiveautomation.com/t/solved-open-window-in-script-tag-changed/63653)._
