getMethodTriggerElementName in 5.0

Hi All

Just started using 5.0 and am having a difficult time finding a few things. Where is .getMethodTriggerElementName? It use to be under Application but it does not appear to be there now.

Thanks for the help.

Tom

Hi Tom,

This is one of the methods/functions that are deprecated. So this means it still works but won’t show up in the object tree or in code completion.
What to use then ?
Each method that is triggered via an event (onAction, etc) will get a JSEvent object passed. This object holds a lot of information including the element name it was triggered from.
You can use it like so:

function methodName(event) {
     var _sElementName = event.getElementName();
}

To see all properties of the JSEvent object check out the JSEvent node under the Application node in the Solution Explorer view.

Hope this helps.

Robert

Thanks a lot. It really did help.