cancel
Showing results for 
Search instead for 
Did you mean: 

No data getting displayed in Table using sap.m.Table library

Former Member
0 Kudos

Hi Guys,

I have created a SAPUI5 application using sap.m library with a Javascript view.

I have build a Table (structure) using the sap.m,Table library. Refer the below snap.

However, I am not able to bind the OData Gateway service to this table.

Under the controller.js file I tried to bind the data using the OData/JSON Model with following code snippet.

Also, apart from this. While I tried to add 2 more columns then no output is getting displayed.

Can anyone please guide me on this.

Thanks,

Mistry Wasim

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Guys,

By mistake, I had place the code in wrong section. Its working fine now.

Thanks for the responses though.

Thanks,

Mistry Wasim

Answers (2)

Answers (2)

saivellanki
Active Contributor
0 Kudos

Hi Mistry,

Can you print the JSON model data and give us sample of 2 records? It will be easy to resolve, if model structure is available


JSON.stringify(sap.ui.getCore().getModel().getData());

Regards,

Sai Vellanki.

Former Member
0 Kudos

Hi Sai,

I didnt got what you mean by JSON Model data? Could you help me understand it.

For reference I am attaching the JavaScript view file where I am creating Table(Structure).

Also, I am attaching the XML output of the OData service.

I hope this helps.

Thanks,

Mistry Wasim

santhu_gowdaz
Active Contributor
0 Kudos

bindItems(path,....),

check here- http://scn.sap.com/thread/3542984

else you can use bindAggregation - Binding oData into table(sap.m.table) in SAPUI5 | SCN