Among the CDS annotations for declaring constraints when modelling, there are a handful that can be used to drive behaviour and restrictions in Fiori UIs, by causing the generation of appropriate annotations in the service's metadata.
One of these annotations is @mandatory, and this causes an OData annotation to be generated on the target that corresponds to the element annotated in CDS:
<Annotations Target="...">
<Annotation Term="..." EnumMember="..." />
</Annotations>The OData vocabulary Common contains the term FieldControl. In the <Annotation ... /> element that is generated, there's an attribute Term which points to this term, and a second attribute EnumMember which contains the fully qualified value for that term, a value which represents "mandatory".
What is that fully qualified value?
This is a question from the June Developer Challenge on CAP Knowledge. And don't forget: always submit your answer as a hash, on its own - read the Taking part section of the intro post for more info. At the end of today, this question will be updated with links to further reading on this topic.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 27 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |