You can use the message view to display messages that are not related to form or table fields. These messages are triggered in response to a user action.
Although the message view can be embedded within various controls, we recommend that you use it only within a dialog.
Use the message view if:
- You want to display multiple messages triggered by an action within a disruptive dialog.
Do not use the message view if:
Multiple Message types – Filtering by Message Severity
If different types of message are available, users can filter messages by type (error, warning, success, and information) using the segmented buttons at the top of the message view.
One Message Type Only – Filtering Hidden
The filter bar is hidden if there is only one type of message (for example, only errors).
Short Description (1)
The short description comprises a simple and helpful text.
The subtitle comprises a description that helps users to identify the object they are looking for.
Navigation to Second Page (3)
If there is a long text, the message popover automatically provides an arrow on the right for navigating to the message details.
Aggregating Messages (4)
You can aggregate messages by filling out the counter property of each list item.
Detail Page of the Message View
Behavior and Interaction
Navigation to the Second Page of the Message View
If the backend contains a long text, the user can click the arrow/chevron on the right-hand side to view the full text in the second page of the message view.
We recommend that messages no longer be displayed after the user closes the dialog (sap.m.MessageBox/sap.m.Dialog).
Want to dive deeper? Follow the links below to find out more about related controls, the SAPUI5 implementation, and the visual design.