Button Parameters

Is it possible to pass a parameter within the context of a Method executed by a button/action?

Or, alternatively, is there an application property that can supply the name of the button/object that initiated a method (ie. getLastObjectClicked or something to that effect)?

For example, I would like to pass the name of the column heading field into a Sort script as a parameter/argument based on the name of the column heading object clicked on.

Thanks,
Lee

Hi Lee,

bubba:
Or, alternatively, is there an application property that can supply the name of the button/object that initiated a method (ie. getLastObjectClicked or something to that effect)?

Yes, you can use application.getMethodTriggerElementName() to get the name of the object you clicked on.
Ofcourse the object have to have it’s name property set.

ROCLASI:
Hi Lee,

bubba:
Or, alternatively, is there an application property that can supply the name of the button/object that initiated a method (ie. getLastObjectClicked or something to that effect)?

Yes, you can use application.getMethodTriggerElementName() to get the name of the object you clicked on.
Ofcourse the object have to have it’s name property set.

Robert:

Great, thanks.

Lee