Dear CAP-Team,
In my Bookshop-style sample, I want to introduce the following service:
service CatalogService {
@readonly
entity myOrders as select from domain.Orders {
ID, orderNo, Items
} where createdBy = $user.id;
}
It seems that the pseudo-variable $user.id is not evaluated properly (I also tried $user). domain.Orders is including the usual managed-aspect. When I'm importing csv-data, or doing POST requests, $user is set to "anoynmous". Using explicitely where createdBy = 'anonymous' is retrieving these data sets, whereas the above query returns an empty data set.
Dear CAP-Team, In my Bookshop-style sample, I want to introduce the following service:
It seems that the pseudo-variable
$user.id
is not evaluated properly (I also tried$user
).domain.Orders
is including the usualmanaged
-aspect. When I'm importing csv-data, or doing POST requests,$user
is set to "anoynmous". Using explicitelywhere createdBy = 'anonymous'
is retrieving these data sets, whereas the above query returns an empty data set.Is this a known issue?
Thanks Klaus