02-15-2017 1:48 PM - edited 02-03-2024 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
I think you changed the OData model in the backend system. You just have to synchronize the data model (e.g. Manifest.json -> Data Sources) and empty the browser cache. Then it should work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi please share the solution,am also facing same issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 |
---|---|
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.