Skip to Content
0
Aug 11, 2023 at 07:23 AM

How to set values dynamically in annotations cds file

584 Views

We have an annotations cds file in which we have a below line of code. This line of code value set as true which is hardcoded as of now.

annotate service.Employees with @UI.CreateHidden: true;

But out requirement is to dynamically populate the value like true or false based on some service call

or database field.

Is it possible to set the value dynamically, If so kindly provide some sample code for the same.

Thanks!