Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple $expand Parameters in OData binding

Tags:

odata

sapui5

I have a table binding and consuming the publicly available OData service from the ES4 SAP system. My root entity set is ProductSet and it has 2 navigation properties: ToSupplier and ToSalesOrderLineItems.

I am able to issue the $expand parameter in the table bindings as follows, but could you please assist me in how I can pass both navigational properties so that the OData service expands both ToSupplier + ToSalesOrderLineItems?

<Table items="{
  path: '/ProductSet',
  parameters: {
    expand: 'ToSupplier'
  }
}">
like image 855
Mishan L Avatar asked May 16 '26 16:05

Mishan L


1 Answers

expand: "ToSupplier,ToSalesOrderLineItems"

If "ToSupplier" was a parent of "ToSalesOrderLineItems" then it would look like this:

expand: "ToSupplier/ToSalesOrderLineItems"
like image 110
Andrew Naumovich Avatar answered May 21 '26 00:05

Andrew Naumovich



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!