on 2022 Jun 08 9:56 PM
Hello,
I am facing currently an issue with the annotation "@cds.on.insert". As can be seen in the code below I am using it to fill the property userAttribute of the entity Foo on creation with a specific attribute of the pseudo variable user.
entity Foo : cuid, managed {
userAttribute : String @cds.on.insert : $user.attr;
}
When running it locally the response of the POST request contains correctly the assigned value. However, when retrieving later on the dataset the field "userAttribute" is empty and ofc the field is also empty on the sqlite DB.
Shouln't this work out of the box or have I gotten the documentation wrong?
Best regards,
Raphael
Request clarification before answering.
According to this, I'd say it's not supported without some extra configuration on your part
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
53 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.