# Power Table Popup Menu

**URL:** <https://forum.inductiveautomation.com/t/power-table-popup-menu/9396>\
**Category:** Ignition\
**Created:** [December 1, 2014, 10:22pm UTC](https://forum.inductiveautomation.com/t/power-table-popup-menu/9396 "2014-12-01T22:22:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![WildeKurt](https://avatars.discourse-cdn.com/v4/letter/w/50afbb/32.png) [@WildeKurt](https://forum.inductiveautomation.com/u/WildeKurt)\
**Post date:** [December 1, 2014, 10:22pm UTC](https://forum.inductiveautomation.com/t/power-table-popup-menu/9396/1 "2014-12-01T22:22:30Z")

</div>

I’m trying call a script function from a popup menu on a Power Table. While it mostly works I need to pass the function a custom property value. I’ve tried the following however the only thing I ever get back is type: java.awt.event.MouseEvent. Is there any way to get a property value?

```auto
def whereUsed(p=system.gui.getWindow("Data/DataView").rootContainer.getPropertyValue("ProgramID"),serialNumber=self.data.getValueAt(rowIndex,"SerialNumber")) :
		system.gui.messageBox("PID=" + str(type(p)))
	self.selectedRow = rowIndex

	menu = system.gui.createPopupMenu({'Where Used':whereUsed})
	menu.show(event)

```

---

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [December 1, 2014, 11:33pm UTC](https://forum.inductiveautomation.com/t/power-table-popup-menu/9396/2 "2014-12-01T23:33:54Z")

</div>

Add a variable to the function

```auto
def whereUsed(evt,p=system.gui.getWindow("Data/DataView").rootContainer.getPropertyValue("ProgramID"),serialNumber=self.data.getValueAt(rowIndex,"SerialNumber")):
```
