2017 Feb 15 1:48 PM - edited 2024 Feb 03 8:08 PM
HI Team,
I am trying to to call a function from backend(Odata) From Front End SAP Ui 5:
var urlPram=oEvent.getSource().getBindingContext().getProperty("Id");
this.getOwnerComponent().getModel().callFunction("/AddToCart",
{ method: "POST", urlParameters:
{ ID: urlPram },
success: function(oData, oResponse){ alert("Hi") },
error: function(oData, oResponse){ alert("Hello") }
});
But I am getting an error like:ODataModel.js:6 Uncaught (in promise) undefined
I am trying using eclipse to develop SAP UI 5 application (able to get all the back end data by entity set)
Please kinldy help me in this
Request clarification before answering.
I have the same error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
79 | |
12 | |
9 | |
8 | |
7 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.