Skip to Content
avatar image
Former Member

Fiori Elements - CDS view Annotations - create switch, set properties

Hi,

I have create a fiori app using CDS views, annotations and Fiori elements. I'm now trying to refine the view, by doing things like:

1. Adding a field as a switch/check box

2. setting the properties of a field to mandatory.

I would like to do this using annotations (as entered in the CDS consumption view using the ADT) but I can't find any way to do these sorts of things with syntax examples.

Is this possible?

Any help would be much appreciated

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jan 23, 2017 at 04:00 PM

    To set a field as mandatory use this annotation:

    @ObjectModel.mandatory: true

    Add comment
    10|10000 characters needed characters exceeded