Alarm Status Table createPopupMenu sample

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})

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.

This script works in the createPopupMenu extension function in 7.9.2. Note the last two lines are a little different than what you have: def sayHello(event): system.gui.messageBox("Hello World") menu = system.gui.createPopupMenu(["Click Me"], [sayHello]) return menu

The return menu was the piece I was missing. Thanks!! :thumb_left: