on 2023 Mar 08 9:01 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
9 | |
5 | |
4 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.