Skip to Content

How to expose OData service filtered for the current user on HANA XS

Aug 14, 2017 at 03:55 PM


avatar image
Former Member

Hi, I've been looking and cant seem ton find any information on this subject.

I have a html5 app, which retrieves data from a HANA XS database through ajax calls.

Suppose I have a table with orders and the users can have orders associated to them. How can I define a service that exposes only the orders belonging to the currently logged in user? I couldn't find any "standard" way to do this, which surprises me, as I think its a very common use case. I dont want to send the user id from the html5 app, since it is a security breach.

I think it should be possible to define a custom query on a XS Application with a .xsodata.

I found it may be possible to do this with a .xsjs file, but in a rather rough way, since things like metadata and paging wouldn't be available.

Any ideas on this?


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers