Interface IF_WD_CONTEXT_MENU_EVENT is used to separate user events (context menu resolution) and to display the associated menu entries when you create dynamic context menus.
This interface does not contain any methods, it only has attributes.
Attributes
Attribute | Reference Type | Description |
---|---|---|
CONTEXT_ELEMENT |
IF_WD_CONTEXT_ELEMENT |
Context element You need this attribute for cell editors that are split up into several cells. |
ORIGINATOR |
CL_WDR_VIEW_ELEMENT |
View element that the context menu belongs to. This is the view element on which the user actually clicks to resolve the context menu. |
CONTEXT_MENU_REPRESENTATIVE |
CL_WDR_VIEW_ELEMENT |
View element that may be intended. Example: A user calls the context menu on a label. In this case the originator would be the label, the CONTEXT_MENU_REPRESENTATIVE would be the field that belongs to this label. Another example would be in a table. If a user has clicked a cell editor, the actual cell editor is in the ORIGINATOR, while the CONTEXT_MENU_REPRESENTATIVE is the table column. If someone now clicks on a column header, this time the header is in the ORIGINATOR, while the table column is in the CONTEXT_MENU_REPRESENTATIVE. |