Message Handling

The system generates messages in response to user actions. Each message serves to provide information, give instructions, or issue warnings based on the specific situation.

Message Handling Concept

The SAPUI5 framework provides a central place for storing and managing information, warnings, and error messages.

Messages can be used to notify the users about specific states of the application and guide them how to provide their input. The central MessageManager for storing messages is available globally by calling sap.ui.getCore().getMessageManager() and the central MessageModel for managing messages is available by calling sap.ui.getCore().getMessageManager().getMessageModel().

See Example

MessageToast

The MessageToast provides a way for the application to show non-disruptive message on screen.

sap.ui.define([
	"sap/ui/core/mvc/Controller",
	"sap/m/MessageToast"
], function(Controller, MessageToast) {
"use strict";

	return Controller.extend("sap.m.sample.messageToast.Controller", {
		fnHandler: function () {
			MessageToast.show("Toasted!!!");
		}
	});
});
			
See Example