cancel
Showing results for 
Search instead for 
Did you mean: 

odata model v2

3_
Discoverer
0 Kudos

Hello everyone!

I have a problem with bind data when I use odatamodel v2.

var sPath = "/sap/opu/odata/SAP/ZVC_LOAD_SRV/";

this.oModelParse = new sap.ui.model.odata.v2.ODataModel({ 
serviceUrl: sPath,
useBatch: true });

this.oModelParse.read("/EtItemsSet", {
success: function(oData) { 
},
error: function(oData) {
console.log(oData);
}
}

this.getView().byId("TableVC").setModel(this.oModelParse);


I got a trigger success with data. But I don't understand how I can bind it to a Table. I used next code in xml:

xmlns:t="sap.ui.table"
<t:Table ariaLabelledBy="title" columnHeaderHeight="30px" headerDesign="Standard" id="TableVC" rows="{path:'/results/' }"
selectionMode="None" showColumnVisibilityMenu="true" visibleRowCountMode="Interactive">

Give me advice please how I can bind data in odata model v2.

Accepted Solutions (0)

Answers (0)