Message Handling

The system generates messages in response to what users are doing. A message presents information, an instruction, or a warning to users in a given situation.

Message Handling Concept

Our framework provides a central place for storing and managing info, warning, and error messages.

Messages can be used to notify the user about specific states of the application and can help the user to correct their incorrect inputs. 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