Skip to Content
avatar image
Former Member

How to read OData in sapui5 xml view

Hi

This is the first time for me to develop sapui5 application. I've developed a split app with xml views. Now I'm trying to read the OData service to display a list in the master view.

I've followed this tutorial to set up the data source and model:

https://www.sap.com/developer/tutorials/sapui5-webide-setup-datasource.html

After that I've tried to create the list by following this tutorial:

https://www.sap.com/developer/tutorials/sapui5-webide-add-list.html

But I couldn't make it work. I've read multiple blogs of how to read data but I couldn't understand.

This is the OData I've create in GateWay.

Could anyone please help me to understand?

Thanks

capt.png (8.1 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jun 16, 2017 at 06:35 AM

    Hello,

    Did you generate the service successfully in tcode SEGW?

    If yes, could you please try tcode /IWFND/GW_CLIENT, and query an entity set with your service?

    For example,

    /sap/opu/odata/sap/<YOUR_SERVICE_NAME>/BudgetSwapSet

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 13, 2017 at 10:13 AM

    Hi,

    Check out this video which uses a existing northwind service to develop master detail (split app)application ..

    Might this help you

    https://www.youtube.com/watch?v=sXqq7TbkOoI

    thanks

    Viplove

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 14, 2017 at 03:23 AM

    Those are the errors I'm getting

    Add comment
    10|10000 characters needed characters exceeded