Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

how to get id of button from event

Hi all!

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?




Former Member
Not what you were looking for? View more on this topic or Ask a question