cancel
Showing results for 
Search instead for 
Did you mean: 

oData Navigation Properties SAP UI5

julio-silva
Explorer

Hi Experts,

I'm fairly new to SAP UI5 and i'm having some issues when using Navigation Properties. I've read most of the topics regarding this matter and applied almost every workaround proposed, unfortunately none of approaches was successful.

Basically, i want to use a value from a Navigation Property to fill some fields in a table. In this case i'm in the EntitySet "MyWorkOrderOperations" and i want a value from the "MyWorkOrderHeaders" which we can get from the NavigationProperty "WOHeader". It doesn't matter which value, for this example i'm using the "OrderType".

I'm not being able to get the value for "OrderType", no matter what i try i get always an empty field even knowing that i can get the value from the SAP Gateway using the procedure shown below:

When checking the bindings in the browser's UI5 Inspector i get:

Any clue on how can this be managed?

Thank you very much for your support!

Kind Regards

View Entire Topic
boghyon
Product and Topic Expert
Product and Topic Expert
0 Kudos

Try with:

<table:Table rows="{
  path: '/MyWorkOrderOperations',
  parameters: {
    expand: 'WOHeader',
    select: 'OperationNo,OrderId,WOHeader/ThatHeaderId,WOHeader/OrderType'
  }
}">
  <!-- ... -->
  <ObjectStatus binding="{WOHeader}" text="{OrderType}" />
  <!-- ... -->
</table:Table>

See also: