Skip to Content
0
Dec 07, 2015 at 01:23 PM

Removing a Message from MessageManager

851 Views

Hey Experts,

i'm adding a message to the MessageManager but how to remove a Message?

https://sapui5.hana.ondemand.com/#docs/guide/a90d93df5a024e8bb18826b699c9aaa7.html

this._oMessageManager.addMessages(
  new sap.ui.core.message.Message({
  id: oSource.getId() + "Message",
  message: this.getResourceBundle().getText("error.valueNotValid.messageText"),
  description: this.getResourceBundle().getText("error.valueNotValid.messageDescription"),
  type: sap.ui.core.MessageType.Error,
  target: oSource.getId() + "/value",
  processor: this._oMessageProcessor,
persistent: true
  })
);

The Message should also be remove from the MessagePopover.

I'm working with version 1.32.5 and WebIDE.

looking forward to your reply

Thanks

Simon