‎2020 Nov 25 7:47 AM
Hi,
I am new to cds and i have one confusion, when we writing vdm views where we have to mention semantic annotations or other annotations. Is it in composite view or consumption view?
‎2020 Nov 25 8:34 AM
The idea is that there can be one interface view and multiple consumption views => can be multiple services.
So if you want the annotation to be reusable, then write it at the interface view, maybe a label or something. Else if it is specific to consumption view/service then write it there.
And moreover, we don't even need to write annotations in thw CDs views intself, we can create metadata extensions and write all the annotations there. So these metadata extensions can written for individual CDs views
- Mahesh
‎2020 Nov 25 8:34 AM
The idea is that there can be one interface view and multiple consumption views => can be multiple services.
So if you want the annotation to be reusable, then write it at the interface view, maybe a label or something. Else if it is specific to consumption view/service then write it there.
And moreover, we don't even need to write annotations in thw CDs views intself, we can create metadata extensions and write all the annotations there. So these metadata extensions can written for individual CDs views
- Mahesh
‎2020 Nov 25 9:00 AM
Mahesh, when i write @Semantics.unitOfMeasure and @Semantics.quantity.unitOfMeasure annotations in consumption view i am getting an error like "could not resolve field in composite viewname" but when i used the same annotations in composite view the error was resolved. It means we have to include annotations in composite view only?
‎2020 Nov 25 2:44 PM