UI annotations for Authors
This commit is contained in:
46
fiori/app/authors/fiori-service.cds
Normal file
46
fiori/app/authors/fiori-service.cds
Normal file
@@ -0,0 +1,46 @@
|
||||
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},
|
||||
]
|
||||
}, );
|
||||
@@ -4,6 +4,6 @@
|
||||
|
||||
using from './admin/fiori-service';
|
||||
using from './browse/fiori-service';
|
||||
using from './authors/fiori-service';
|
||||
using from './common';
|
||||
|
||||
using from '@capire/bookstore/srv/mashup';
|
||||
|
||||
Reference in New Issue
Block a user