Showing results for 
Search instead for 
Did you mean: 

Fiori - Bind oData to SAPUI5 - Table

0 Kudos

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.


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.....

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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.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.