Skip to Content

How to filter values in xsodata?

Hi All,

I have the following table : amounterror.Amount_Error

Unique_ID Error_Amount Error Error_Type 111 500 The value of Amount should be !0/<=500 Amount Error 112 0 The value of Amount should be !0/<=500 Amount Error

Now I want to expose this table to ui5 as xsodata but with a filter condition. I need to send the values where Error_Amount >0.

I'm not sure how to write code for the same, below is what I have tried, but it dosent work. Pls help

service {
as "Adjustment" where "Error_Amount" > 0;
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

0 Answers

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.