Use of contextMenu

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

I configured a script event on table:

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

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 ?

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

1 Like

Thank you @michael.flagler