Alex
Alex

Reputation: 4938

How to get the control that was clicked from the caller form?

Using the following code in a chain of command class, I am able to find the caller form:

Object caller = this.args().caller();

How do I go about finding the control that was clicked in the caller form from chain of commands?

Upvotes: 0

Views: 4281

Answers (1)

Alex
Alex

Reputation: 4938

Here is how:

this.args().callerFormControl().name();

Upvotes: 1

Related Questions