Namespace sap.ca.ui.messageModule: sap/ca/ui/message/message
Provides methods to show messages with type of Success, Error, Warning and Information in a Fiori style.
sap.ca.ui.message
is a static class, the statement jQuery.sap.require("sap.ca.ui.message.message")
needs to be called before the function can be used. Example:
jQuery.sap.require("sap.ca.ui.message.message"); // provide your callback function, if you want to get informed after the user closes the MessageBox var bIsMsgBoxClosed = false; var fnClose = function(){ bIsMsgBoxClosed = true; }; // show the erorr message in a MessageBox sap.ca.ui.message.showMessageBox({ type: sap.ca.ui.message.Type.ERROR, message: "No connection can be established to the backend system ABC", details: "Lorem ipsum dolor sit amet, eum an vidit ..." }, fnClose);
Deprecated API:This control is deprecated since 1.28 as per central UX requirements. Please use sap.m.MessageBox instead.
Method Summary
showMessageBox(oSettings?, fnClose?)Shows the messages with type of Success, Error, Warning, Info, in a Fiori style of MessageBox
Method Detail
showMessageBox(oSettings?, fnClose?)
Shows the messages with type of Success, Error, Warning, Info, in a Fiori style of MessageBox
Parameters:
{object} | oSettings? | settings for the message box The supported settings are: type : {sap.ca.ui.message.Type} message : {string} short text, the leading and ending white spaces will be removed details : {string} long text (optional), the detailed information will only be shown if the text is available and different to the message text |
{function} | fnClose? | the function will be called if the message box is closed |