Files
cloud-cap-samples/fiori/app/authors/fiori-service.cds
2021-11-12 21:27:40 +01:00

47 lines
1.1 KiB
Plaintext

using CatalogService from '@capire/bookshop';
////////////////////////////////////////////////////////////////////////////
//
// Authors Object Page
//
annotate CatalogService.Authors with @(UI : {
HeaderInfo : {
TypeName : 'Author',
TypeNamePlural : 'Authors',
Description : {Value : name}
},
HeaderFacets : [{
$Type : 'UI.ReferenceFacet',
Label : '{i18n>Description}',
Target : '@UI.FieldGroup#Descr'
}, ],
Facets : [{
$Type : 'UI.ReferenceFacet',
Label : '{i18n>Details}',
Target : 'books/@UI.LineItem'
}, ],
FieldGroup #Descr : {Data : [
{Value : name},
{Value : dateOfBirth},
{Value : dateOfDeath},
{Value : placeOfBirth},
{Value : placeOfDeath},
]},
});
////////////////////////////////////////////////////////////////////////////
//
// Authors List Page
//
annotate CatalogService.Authors with @(UI : {
SelectionFields : [
ID,
name,
],
LineItem : [
{Value : ID},
{Value : name},
]
}, );