on 06-06-2018 5:45 PM
Hi All,
I have HANA tables exposed as XS OData service and I am trying to consume the service in my Fiori application running on SAP Cloud platform.I have created destination for the XS OData service and I am able to see data.
Now I wanted to restrict the data using Query String parameters.
I would like to know how to use $filter query parameter syntax for XS OData service.
We are using the below sample query to test my OData service on Postman and I am getting the following error.
/EMPLOYEESAMPLE.xsodata/EMPLOYEE_ODATA/?$format=json&$filter=LOCATION eq 'ABC'
*********** Error Details***********
{ "error": { "code": "", "message": { "lang": "en-US", "value": "Operator 'eq' incompatible with operand types 'Edm.Int32' and 'Edm.String'." } } }
Do we need to enable Query parameters on HANA Tables like we do implement for Gateway OData services?
Thank you in advance.
Best Regards
Mahalakshmi
$filter should work automatically for XSOData services...no code change required.
Checkout the standard documentation for Defining OData service using XSOData
missing error screenshot..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.