on 01-24-2018 4:38 PM
I was in chat with SAP and fixed the issue..
var oThis = this;
gModel.create("/adrch_etSet", sendNewData, { success: function() {
var bCompact = !!oThis.getView().$().closest(".sapUiSizeCompact").length;
MessageBox.success("Record successfully saved.",
{ styleClass: bCompact ? "sapUiSizeCompact" : "" }); },
error: function() {
var bCompact = !!oThis.getView().$().closest(".sapUiSizeCompact").length;
MessageBox.alert("Record is not updated, please try later",
{ styleClass: bCompact ? "sapUiSizeCompact" : "" }); } });
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Balaji,
Use the following control in your code
sap.m.MessageBox.alert("Your message");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.