cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAPUI5 odata v4 filtering on property of associated entity

viswatejat
Explorer
0 Likes
152

I am using odata v4 have to do filtering on a property in associated entity and url is as below.

Product$count=true&$expand=_ProductDescription($select=ProductDescription),_ProductPlant($select=Plant;$filter=Plant eq '1710')

Product is the entity and _ProductDescription, _ProductPlant are associated entities and filtering is required on plant which is property of _ProductPlant

I have tried as below but its not working and expecting in the format of _ProductPlant($select=Plant;$filter=Plant eq '1710'). What is the filter syntax in sapui5 code for this...

new Filter("_ProductPlant/Plant", FilterOperator.EQ, 1710))

Accepted Solutions (0)

Answers (0)