on 09-08-2014 5:36 AM
Dear All Gurus,
Need your expert knowledge on solving below simple matter..
I have created an oData(for customized app - Purchase Order Header and Line Items for MIGO transaction) and I am getting data successfully from oData but I am bit stuck in how to bind these Line Items Values to SAPUI5 table.
and below is a snapshot of Chrome Developer tool.
Code
var serviceURI = "proxy/http/--/sap/opu/odata/sap/ZMIGO_SRV/MIGOSet(GmCode='01',DocumentInput='2000006954')?$expand=MIGO_Navigation";
OData.request({ requestUri: serviceURI,
headers:{"X-Requested-With": "XMLHttpRequest",
"Content-Type": "application/atom+xml",
"DataServiceVersion": "2.0",
"X-CSRF-Token":"Fetch" },
method : "GET",
user: "ABC",
password: "PW" ,
recognizeDates: true,},
Plz help.....
in the controller file of your view pls add this code where you have a reference of the Table that you want to show the data from the oData Service.
oTable.setModel("<yourModelName>");
oTable.bindRows("/Migo_Navigation/results", null, null,[ filter ]);
this is what I am seeing from the screen shot. you need to bind to the Item Collection or the entity set that is being returned for Line Items.
thanks
A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
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.