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
1 Answer
Reset to default -1oModel.read("/_ProductPlant", {
filters: [new Filter("Plant", "EQ", 1710)]
});
本文标签: javascriptHow to filter on property of associated entityStack Overflow
版权声明:本文标题:javascript - How to filter on property of associated entity? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741544214a2384500.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论