-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy patheventregistration-service-annotations.cds
72 lines (68 loc) · 1.64 KB
/
eventregistration-service-annotations.cds
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
using EventRegistrationService from './eventregistration-service';
annotate EventRegistrationService.Person with @odata.draft.enabled;
annotate EventRegistrationService.Person with {
ID @title: '{i18n>GUID}' @Core.Computed;
Email @title: '{i18n>Email}';
LastName @title: '{i18n>Lastname}';
FirstName @title: '{i18n>Firstname}';
Birthday @title: '{i18n>Birthdate}';
}
annotate EventRegistrationService.Person with @(
UI: {
HeaderInfo: {
TypeName: '{i18n>Person}',
Title: {
Value: FirstName
},
Description: {
Value: LastName
},
TypeNamePlural: '{i18n>Persons}'
},
SelectionFields: [LastName, FirstName],
LineItem: [
{Value: FirstName},
{Value: LastName},
{Value: Email},
{Value: Birthday}
],
Facets: [
{$Type: 'UI.ReferenceFacet', Label: '{i18n>Familymembers}', Target: 'FamilyMembers/@UI.LineItem'}
],
FieldGroup#Main: {
Data: [
{Value: FirstName},
{Value: LastName},
{Value: Email},
{Value: Birthday}
]
},
HeaderFacets: [
{$Type: 'UI.ReferenceFacet', Label: '{i18n>PersonData}', Target: '@UI.FieldGroup#Main'}
]
},
);
annotate EventRegistrationService.FamilyMember with @(
UI: {
HeaderInfo: {
TypeName: '{i18n>Familymember}',
TypeNamePlural: '{i18n>Familymembers}'
},
SelectionFields: [LastName, FirstName],
LineItem: [
{Value: FirstName},
{Value: LastName},
{Value: Birthday}
],
Facets: [
{$Type: 'UI.ReferenceFacet', Label: '{i18n>FamilyMemberData}', Target: '@UI.FieldGroup#Main'}
],
FieldGroup#Main: {
Data: [
{Value: FirstName},
{Value: LastName},
{Value: Birthday}
]
}
}
);