Skip to Content
author's profile photo Former Member
Former Member

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

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 24, 2015 at 01:22 PM

    Hi Guys,

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

    Thanks for the responses though.

    Thanks,

    Mistry Wasim

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 24, 2015 at 12:12 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 24, 2015 at 12:18 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.