how to get id of button from event
I want to use one action for several buttons in a view. When I hit one, I want to get the id of the button from the event. I know that it's not in the standard, anyway I found a post by Maksim Rashchynski who proposed to use wdDoModifyView like this:
final String id = element.getId();
final IWDButton button = (IWDButton)element;
button.mappingOfOnAction().addParameter( "actionID", id );
sounds nice, but what is element? Where can I get it from?