Skip to Content
avatar image
Former Member

SAPUI5 oData table binding with expand and filter

I am working on a master detail application in SAPUI5. In the detail page to display service tickets from C4C.

The detail page shows the service tickets and and service ticket items. I am able to use Table to perform the binding to show the ticket items.

One of the column in the table is to show a particular text note associated with the item. The text note is linked to a collection using navigation. This collection has several texts and their associated text types.

As one example I added an expand parameter during binding of the table.

items="{path: 'ServiceRequestItem', parameters : {expand:'ServiceRequestItemTextCollection'}}"

and then can display the first text using

<ObjectIdentifier text="{ServiceRequestItemTextCollection/0/Text}"/>

However, my actual requirement is to display a text based on a particular typecode. ServiceRequestItemTextCollection has Text and typecode and I need to display the text when typecode equals XXX.

I have tried adding a filter on typecode but that is not working, guess due to the 1..n cardinality

How can this be achieved ?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

0 Answers