I was unable to replicate the behavior testing in a live session using this code for my internalFrameOpened event handler:
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?