Skip to content

Commit b49e0f7

Browse files
committed
Develop a Custom UI and Deploy it to SAP S/4HANA Cloud
- changed the destination name according to the setup guide - adapted the error handler to show BADI messages
1 parent 41566b0 commit b49e0f7

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

neo-app.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@
3232
},
3333
"description": "SAPUI5 Test Resources"
3434
}, {
35-
"path": "/S4H_Equipment",
35+
"path": "/sap",
3636
"target": {
3737
"type": "destination",
38-
"name": "S4H_Equipment"
38+
"name": "S4H_Equipment",
39+
"entryPath": "/sap"
3940
},
4041
"description": "S4H_Equipment"
4142
}],

webapp/controller/ErrorHandler.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ sap.ui.define([
6161
MessageBox.error(
6262
this._sErrorText, {
6363
id: "metadataErrorMessageBox",
64-
details: sDetails,
64+
// details: sDetails,
6565
styleClass: this._oComponent.getContentDensityClass(),
6666
actions: [MessageBox.Action.RETRY, MessageBox.Action.CLOSE],
6767
onClose: function (sAction) {
@@ -106,9 +106,9 @@ sap.ui.define([
106106
}
107107
this._bMessageOpen = true;
108108
MessageBox.error(
109-
this._sErrorText, {
109+
JSON.parse(sDetails.responseText).error.message.value, {
110110
id: "serviceErrorMessageBox",
111-
details: sDetails.responseText,
111+
// details: sDetails.responseText,
112112
styleClass: this._oComponent.getContentDensityClass(),
113113
actions: [MessageBox.Action.CLOSE],
114114
onClose: function () {

webapp/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,4 +156,4 @@
156156
"uri": "webapp",
157157
"_version": "1.1.0"
158158
}
159-
}
159+
}

0 commit comments

Comments
 (0)