Skip to Content
0

How can I call different OData entities in split app

Jul 25, 2017 at 11:16 AM

101

avatar image
Former Member

Hello

I'm working on sapui5 XML split app using routing in web ide. The OData structure contains multiple entities. 1 entity for the list that I'm displaying in the master page. and 3 other entities supposed to be displayed in the detail page. How can I display the details of the pressed item when I'm calling the other entities? Now I'm able to do that for the list entity only.

Please advise.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Jamie Cawley
Jul 25, 2017 at 02:09 PM
0

Have you tried or are you using any of the Web IDE templates?

Regards,

Jamie

Show 6 Share
10 |10000 characters needed characters left characters exceeded
Former Member

No, I'm not using a template.

0

Depending on the scenario you may be able to add an expand to the master list

<List id="list" items="{ path: '/YourDataSet', parameters : {expand:'TheOtherDataSetNavPath'},

and then bind the items as

"{TheOtherDataSetNavPath/TheField}"

I would also recommend generating an app with the master detail template to see how it passes the selection to the detail controller and binds the view with it.

Regards,

Jamie

0
Former Member
Jamie Cawley

unfortunately, expand is not working for me.

I've tried to use the template but also couldn't make it work.

Thanks

0

Does your service support this? Did you try it in a browser? Can you provide the metadata?

Regards,

Jamie

0
Former Member
Jamie Cawley

This is the metadata

metadata.txt
metadata.txt (20.2 kB)
0

Your service does not include any defined relationships, so expand will not be an option for you. Please refer to the following two page which provide the code needed to bind a view to a passed context.

https://sapui5.hana.ondemand.com/#docs/guide/f96d2522a5ca4382a274ae3c6d002ca0.html

https://sapui5.hana.ondemand.com/#docs/guide/6c7c5c266b534e7ea9a28f861dc515f5.html

Regards,

Jamie

0