on 2019 Jul 15 6:36 AM
Hi All,
I am new in SAP UI5 , i have one strange issue with value of oKey1 disappeared.
i can see value in debug mode.
please help me ..
Assertion failed: EntityType for path /ZGETPRDSet?$filter=Zcatid eq '' could not be found!
oTable.bindItems("/ZGETPRDSet?$filter=Zcatid eq '" + oKey1.getValue() + "'", colItems);
this is split .
[master.controller.js]
onSelect: function (oEvent) {
var oContext = oEvent.getParameter("listItem").getBindingContext();
var CatID = oContext.getProperty("CatID"); // i can see value of CatID
var ooModel = new sap.ui.model.odata.ODataModel("http://xxx.xxxx.com:8000/sap/opu/odata/sap/ZGETCATLIST_SRV", false);
sap.ui.getCore().byId("idDList").setModel(ooModel);
sap.ui.getCore().byId("idCatID").setValue(CatID); // i can see value of CatID
[detail.view.js]
var oCatID = new sap.m.Input("idCatID"); //
var oKey1 = sap.ui.getCore().byId("idCatID");
oTable.bindItems("/ZGETPRDSet?$filter=Zcatid eq '" + oKey1.getValue() + "'", colItems);
return new sap.m.Page({ title: "Prd List", showNavButton: true, navButtonPress: function(oEvt){app.back();},
content: [oTable, oCatID ] });
Request clarification before answering.
It is giving error: Assertion failed: EntityType for path /ZGETPRDSet?$filter=Zcatid eq '' could not be found!
check in backend gateway service (SEGW), if the entity "ZGETPRD" is there and entityset "ZGETPRDSet" is there.
Check these links for table binding: Table demo
Check this for Master Detail routing: Master_Detail Demo
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
22 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.