cancel
Showing results for 
Search instead for 
Did you mean: 

@odata.value always zero, is that possible to change it in custom handler?

Shanshan
Explorer
0 Kudos
356

I try to filter data based on login user, until now, the data can be achieved but could not shown in Fiori List Report table. And we figured out @odata.value is always 0 once do filtering in READ event.

We user this.on('Read', EntityName) as a handler and do filter in it. Is there any solutions? I checked the blogs but none of them could solve my issue. My case is very similar with this one: https://answers.sap.com/questions/13504754/cap-cds-nodejs-limit-result-of-query-in-onread-han.html

Hope some one can give me a favor.

Thank you in advance.

View Entire Topic
Shanshan
Explorer
0 Kudos

The @odata.value=0 will impact the display of data in Fiori app but actually when I use javascript function to deal with the data, odata.value is not zero any more but still get the wrong count number. Fortunately, the filtered data can be shown in the Fiori app correctly. However, it won't work in preview mode, I am still working on this.

acamozu
Explorer
0 Kudos

Hi Shanshan, 
Hope you are doing well. I am facing the same problem. Did you solve it? if you did, would you please share the solution. Thanks