Good morning, I want to display the data that has two tags (memory tags that I can change manually from the designer) without binding because I need different instances of the window that is going to show two labels.
Example:
Part 1
Labels | Reading Tag | Display label
lblCanalTag | 04 | 04
lblSectorTag | 07 | 07
Then, the instance of the window open and show it
Part2 (without close the first window that is open)
Labels | Reading Tag | Display label
lblCanalTag | 08 | 08
lblSectorTag | 010 | 010
Then, the instance of the window open and show it, so I have two instances now.
But I tried printing the data if the tag was reading because did not show the data in the labels, and it open various windows but are empty.
I have this code:
#Labels
lblCanalTag = system.gui.getParentWindow(event).getComponentForPath('Root Container.lblCanalTag').text
lblSectorTag = system.gui.getParentWindow(event).getComponentForPath('Root Container.lbSectorTag').text
#Reading tags
tgCanal = system.tag.readBlocking("[default]app_tags/Componentes/ArranquePedidos/Alarma_Canal_Vacio")
tgSector = system.tag.readBlocking("[default]app_tags/Componentes/ArranquePedidos/Alarma_Sector_Vacio")
#set text in the display of the label
lblCanalTag=tgCanal
lblSectorTag=tgSector