Start of Content Area

Background documentation MessageArea  Locate the document in its SAP Library structure

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.

Note

Note that if the MessageArea UI is to be visible, you should also make sure that the view that contains the UI element is visible (the visibility of the view and UI element should match).

For more information, see Messages.

More information:

Reusable Components and the Message Area

 

Runtime class

CL_WDR_MESSAGE_AREA

 

Properties in the View Designer

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

 

Events in the View Designer

Name

onNavigate

Note

Other properties that can be inherited are defined in the associated high-level classes. The associated UI elements are:

        UIElement

        ContextMenuProvider

        ViewElement

Dynamic Programming

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

Dynamic programming of properties

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

 

Dynamic programming of events

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.

 

 

End of Content Area