Alarm click events #143

Merged
gigi.mamaladze merged 5 commits from guga into main 2025-06-26 14:25:58 +00:00
Showing only changes of commit f98724dad6 - Show all commits

View File

@ -3,6 +3,17 @@ def handleTagHighlight(view, currentValue):
if tag == "":
return
splitedTag = str(tag).split("/")
deviceName = splitedTag[-1]
system.perspective.print(splitedTag)
tagCopy = tag
if "PE" in deviceName:
tag = "/".join(splitedTag[:2]) + "/Conveyor/" + deviceName[:-3] + "VFD1"
system.perspective.print(tag)
components = view.rootContainer.getChildren()
@ -19,7 +30,6 @@ def handleTagHighlight(view, currentValue):
if tag == tagPath:
child.props.params["isHighlighted"] = True
system.perspective.openDock('Docked-East-VFD', params={'tagProps': tagProps})
break
return True
return False