Request clarification before answering.
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 |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.