Homelab, Linux & ABAP (~˘▾˘)~
 

[SAPUI5] Message Box

https://experience.sap.com/fiori-design-web/message-box/
https://sapui5.hana.ondemand.com/#/entity/sap.m.MessageBox
https://sapui5.hana.ondemand.com/#/api/sap.m.MessageBox

			onRemoveItem: function (event) {
				var sPath = event.getSource().getParent().getBindingContext().getPath();
				var oModel = this.getView().getModel();
				MessageBox.confirm(
					this.getView().getModel("i18n").getProperty("MessageBoxText"), {
						actions: [MessageBox.Action.YES, MessageBox.Action.NO],
						emphasizedAction: MessageBox.Action.YES,
						onClose: function (sAnswer) {
							if (sAnswer === MessageBox.Action.YES) oModel.remove(sPath);
						}
					}
				);
			},

Leave a Reply

Your email address will not be published. Required fields are marked *