on 04-24-2017 2:15 PM
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.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.