admin管理员组

文章数量:1292223

I 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))

I 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))
Share Improve this question edited Mar 6 at 8:45 DarkBee 15.6k8 gold badges72 silver badges116 bronze badges asked Feb 13 at 12:02 viswa tejaviswa teja 293 bronze badges
Add a comment  | 

1 Answer 1

Reset to default -1
oModel.read("/_ProductPlant", {
  filters: [new Filter("Plant", "EQ", 1710)]
});

本文标签: javascriptHow to filter on property of associated entityStack Overflow