2016-07-28 61 views
0

我有kendo網格,它使用odata過濾。問題是我需要過濾集合內的集合和集合中的屬性。是否有可能過濾OData內收集和收集的屬性

查詢:CaseStudies/ExamRecords/any(d:contains(d/LevelName,'11'))

CaseStudies - 收集

ExamRecords - 收集

LevelName - 財產

我不熟悉的OData過濾。所以問題是如何糾正配置請求來過濾此查詢?

因爲現在我有以下錯誤信息:The parent value for a property access of a property 'ExamRecords' is not a single value. Property access can only be applied to a single value.

編輯1

我使用$擴大,這個問題不是「如何顯示集合」,這個問題關於「如何篩選收藏內藏物品「。

+0

你需要使用$ expand來獲取子集合。請參閱http://stackoverflow.com/questions/9171310/odata-filter-with-items-in-a-expand –

+0

@MurrayFoxcroft我正在使用$ expand,這個問題是另一個 – BorHunter

回答