Parsing 使用筛选查询表达式对象中元素的长度?

Parsing 使用筛选查询表达式对象中元素的长度?,parsing,expression,sapui5,Parsing,Expression,Sapui5,因此,在我的sapui5视图中,以下返回了2的正确答案: <Text text="Test text 1: {= ${notif>CatToPhoto/}.length}"/> <Text text="Test text 2: {= ${path: 'notif>CatToPhoto/'}.length}"/> 这也会返回2的正确答案: <Text text="Test text 1: {= ${notif>CatToPhoto/}.len

因此,在我的sapui5视图中,以下返回了2的正确答案:

<Text text="Test text 1: {= ${notif>CatToPhoto/}.length}"/>
<Text text="Test text 2: {= ${path: 'notif>CatToPhoto/'}.length}"/>

这也会返回2的正确答案:

<Text text="Test text 1: {= ${notif>CatToPhoto/}.length}"/>
<Text text="Test text 2: {= ${path: 'notif>CatToPhoto/'}.length}"/>

然而,这完全忽略了过滤,并继续返回一个2的答案,而现在它应该返回1

<Text text="Test text 3: {= ${path: 'notif>CatToPhoto/', filters: [{path: 'PhotoTypeKey', operator: 'EQ', value1: 2}]}.length}"/>


有人知道吗,请问,有没有一种方法可以对odata数据集进行过滤,从而使我能够获得具有特定值的元素的计数?

因此,我发现我可以通过使用格式化程序来实现我需要做的事情

xml示例如下所示:

<Text text="Test text: {path: 'notif>CatToPhoto/', formatter: '.filterForOverview'}"></Text>

不是JSONModel吗?不是Marc。这是一个ODataModel,第2节。