on 02-06-2016 9:46 PM
I want expose via xsodata a cds view which does a select on a table with a where clause comparing a column to the equivalent of $.request.language.
How can I do this? While I have eg CURRENT_USER for the view definition, how can I use something like $.request.language? And while I can modify CUD operations with xsjs, I can't modify READ operations...
Any ideas?
You can use
in your CDS view where clause.
If you need more flexibility it would also be possible to add a calculation view with a parameter on top of your CDS view. With the parameter you are able to restrict the output (e.g. by language). How you pass the parameter to the OData service can be found here: OData Parameter Entity Sets - SAP HANA Developer Guide for SAP HANA Studio - SAP Library
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.