aplication.getMethodTriggerElementName behaviour

Hi there,

I have a method called new_record() which is called through a button on a form and also through the “New record” servoy function ( here I am overriding the servoy’s default method)

The application.getMethodTriggerElementName() is returning the last method trigger element name properly when I click the “new record” button in the form. But when I press Ctrl + N to activate the “new record” method it returns the last method trigger element name instead of returning empty.

I think the application.getMethodTriggerElementName() should only return the name of the element inside the method (& also the method’s sub methods) that element is attached to.

Thanks
Hameed

i tested this and can’t reproduce it.
It does return null if i do attach the same method to a button and an form action. And i go through the form methods or accelerator.