# Alarm Status Table createPopupMenu sample

**URL:** <https://forum.inductiveautomation.com/t/alarm-status-table-createpopupmenu-sample/12875>\
**Category:** General Discussion\
**Created:** [March 30, 2017, 2:05pm UTC](https://forum.inductiveautomation.com/t/alarm-status-table-createpopupmenu-sample/12875 "2017-03-30T14:05:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tashby](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tashby/32/67562_2.png) [@tashby](https://forum.inductiveautomation.com/u/tashby)\
**Post date:** [March 30, 2017, 2:05pm UTC](https://forum.inductiveautomation.com/t/alarm-status-table-createpopupmenu-sample/12875/1 "2017-03-30T14:05:39Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [March 30, 2017, 2:45pm UTC](https://forum.inductiveautomation.com/t/alarm-status-table-createpopupmenu-sample/12875/2 "2017-03-30T14:45:19Z")

</div>

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`

---

<div class="post-metadata">

**Author:** ![tashby](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tashby/32/67562_2.png) [@tashby](https://forum.inductiveautomation.com/u/tashby)\
**Post date:** [March 31, 2017, 4:12am UTC](https://forum.inductiveautomation.com/t/alarm-status-table-createpopupmenu-sample/12875/3 "2017-03-31T04:12:48Z")

</div>

The return menu was the piece I was missing. Thanks!! ![:thumb_left:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/e26afb081ddde6df016df6ee49159cf56aaca688.gif ":thumb\_left:")
