MessageArea

The MessageArea UI element represents a placeholder that specifies how messages such as error messages and warnings are to be depicted in the view.

Under certain circumstances, the Web Dynpro Framework changes the position specification of the MessageArea UI element if other targets such as portal mechanisms for displaying error messages have priority.

For more information, see Messages .

More information:

Reusable Components and the Message Area

Runtime class

CL_WDR_MESSAGE_AREA

 

Name

Type

Initial value

Bindable

id

STRING

(automatic)

No

contextMenuBehaviour

WDUI_CONTEXT_MENU_BEHAVIOUR

inherit

No

contextMenuId

WDY_MD_UI_ELEMENT_REFERENCE

 

No

enabled

WDY_BOOLEAN

true

Yes

firstVisibleMessage

I

0

No

historyVisible

WDY_BOOLEAN

true

Yes

maxVisibleMessages

I

0

No

tooltip

Translatable text

 

Yes

visible

WDUI_VISIBILITY

visible

Yes

Name

onNavigate

Dynamic Programming

For dynamic programming, the same properties, events, and aggregations are available as in the View Designer. Bear in mind the different spellings.

View Designer name

Runtime name

Type

contextMenuBehaviour

CONTEXT_MENU_BEHAVIOUR

WDUI_CONTEXT_MENU_BEHAVIOUR

contextMenuBehaviour: inherit

CL_WD_MESSAGE_AREA=>E_CONTEXT_MENU_BEHAVIOUR-INHERIT

contextMenuBehaviour: provide

CL_WD_MESSAGE_AREA=>E_CONTEXT_MENU_BEHAVIOUR-PROVIDE

contextMenuBehaviour: suppress

CL_WD_MESSAGE_AREA=>E_CONTEXT_MENU_BEHAVIOUR-SUPPRESS

contextMenuId

CONTEXT_MENU_ID

WDY_MD_UI_ELEMENT_REFERENCE

enabled

ENABLED

WDY_BOOLEAN

firstVisibleMessage

FIRST_VISIBLE_MESSAGE

I

historyVisible

HISTORY_VISIBLE

WDY_BOOLEAN

maxVisibleMessages

MAX_VISIBLE_MESSAGES

I

tooltip

TOOLTIP

WDY_MD_TRANSLATABLE_TEXT

visible

VISIBLE

WDUI_VISIBILITY

visible: none

CL_WD_MESSAGE_AREA=>E_VISIBLE-NONE

visible: visible

CL_WD_MESSAGE_AREA=>E_VISIBLE-VISIBLE

View Designer name

Runtime name

onNavigate

ON_NAVIGATE

Example

You can find examples for this UI element in the system in the WDR_TEST_UI_ELEMENTS Web Dynpro application and in the WDR_TEST_EVENTS component in the MessageArea view.