on 12-09-2020 9:41 AM
Dear community,
I have a question regarding SAP CAP development.
On service level, I'm adding a property to my entity as explained here: Adding computed fields
entity Models as select from db.Models {
*,
null as test: Boolean }
How can I set a default value for this new property?
In this case, I would like my property "test" to be true.
Thanks and best regards,
Elias
Did you try:
entity Models as select from db.Models {
*,
true as test: Boolean }
This should create the underlying database view with true as default. Or in which situations do you want the default applied?
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.