Skip to Content
0
Dec 09, 2020 at 09:41 AM

Setting default value for property on service level in CAP

169 Views

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