on 2022 Dec 08 10:47 AM
Hi Team,
I am facing an issue in my custom UI5 application while reading the data from backend for my Read query -
onInit: function () {
this.oModel = this.getOwnerComponent().getModel();
this.oCustTable = this.getView().byId("idCustTable");
this.oModel.read("/ET_Deal_CustListSet", {
success: function (odata) {
var CustJsonData = new JSONModel(odata.results);
this.getView().setModel(CustJsonData, "ET_CustList");
}
});
},
manifest1.jpgmanifest2.jpgmanifest3.jpgmanifest4.jpg
Please advise.
Regards -
Meenakshi
Request clarification before answering.
Hi meenakshi.raina,
This could be because this.getOwnerComponent().getModel() is returning undefined. Kindly check if it helps 🙂
Thanks and Regards
Ashish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ashish
Yes, that's correct. But I have defined my service in the manifest file. img-20221208-wa0032.jpg
Do I need to do more?
User | Count |
---|---|
80 | |
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.