getMethodTriggerElementName

this might have been discussed before, but I cannot find anything by searching the forum:

when I use getMethodTriggerElementName via the onAction of a field (non editable), null is returned. When using onFocusGained, the element’s name is returned. I would prefer to use onAction, is there a reason that the element’s name is not returned then?

Thank you.

Can’t reproduce it. Both are returning the name nicely.

Are you sure that the onAction field does have a name (given in the designer)??
if you don’t give it a name it will return null

yes, they have a name. they are calculated fields with their column name set as element name. They are set non editable.

I have created a simple method that doesn’t do anything else but return the name onAction and it returns null.

Servoy 1.2 on Windows XP, if that helps.

now i see, You mean the onAction with a mouse click (and not by pressing enter in the field)

The mouse action is fixed for the next 2.0 beta build (>b4)

yes I do. thanks.