I’m trying to utilize the right click popup menu on the Alarm Status Table and can’t seem to get it to work. I’v tried the sample from the manual:
def sayHello(event):
import system
system.gui.messageBox("Hello World")
menu = system.gui.createPopupMenu({"Click Me":sayHello})
menu.show(event)
but it doesn’t appear to work either. I’m still new to the building a popup menu and all that. Ultimately, I want to select an alarm, right click and select Disable or Suppress and run the appropriate script using the ‘fullItemPath’ from the alarm selected. I have disable/suppress tags inside the UDT’s of the alarms that I wish to toggle.
If anyone has some sample script I can modify from, of using the popup menu on the alarm status table it would be greatly appreciated.