# Use of contextMenu

**URL:** <https://forum.inductiveautomation.com/t/use-of-contextmenu/90172>\
**Category:** Ignition\
**Tags:** perspective, scripting, ignition81\
**Created:** [May 9, 2024, 3:43pm UTC](https://forum.inductiveautomation.com/t/use-of-contextmenu/90172 "2024-05-09T15:43:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebastien\_ng](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sebastien_ng/32/55297_2.png) [@sebastien\_ng](https://forum.inductiveautomation.com/u/sebastien_ng)\
**Post date:** [May 9, 2024, 3:43pm UTC](https://forum.inductiveautomation.com/t/use-of-contextmenu/90172/1 "2024-05-09T15:43:13Z")

</div>

hello, I have create a contextMenu with 3 option like image below:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/6/96fcf76c7f6858542ed687ce0b356782735a9088.png)

I configured a script event on table:

```python
def Acknowledge(self):
	eventId = self.props.selection.data[0]['EVENT ID']
	system.alarm.acknowledge(str(eventId),'only test')

```

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/2/829728d76788dd5edd5121531561768a9587202a.png)

But when I click on option `Acknowledge` of menu contextuel, nothing is happend.  
Maybe I must setup something but I don't nkow where. I never used it.  
How work contextMenu ?

---

<div class="post-metadata">

**Author:** ![michael.flagler](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/michael.flagler/32/26272_2.png) [@michael.flagler](https://forum.inductiveautomation.com/u/michael.flagler)\
**Post date:** [May 9, 2024, 3:46pm UTC](https://forum.inductiveautomation.com/t/use-of-contextmenu/90172/2 "2024-05-09T15:46:24Z")

</div>

The type needs to be changed to method. Refer to the manual here:

> **[Perspective Component Properties | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/ignition-modules/perspective/working-with-perspective-components/perspective-component-properties#context-menu-item-types)**
>
> Each Perspective component has a unique set of properties that can be set and modified within the Perspective Property Editor. A component property is simply a named variable with a distinct type that affects something about the component's behavior...

---

<div class="post-metadata">

**Author:** ![sebastien\_ng](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sebastien_ng/32/55297_2.png) [@sebastien\_ng](https://forum.inductiveautomation.com/u/sebastien_ng)\
**Post date:** [May 9, 2024, 4:25pm UTC](https://forum.inductiveautomation.com/t/use-of-contextmenu/90172/3 "2024-05-09T16:25:52Z")

</div>

Thank you @michael.flagler
