forked from cap-js-community/odata-v2-adapter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathannotations.cds
36 lines (35 loc) · 1.03 KB
/
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
using AgreementService from '../../srv/agreement';
annotate AgreementService.AgreementItemPricingForKeyDate with @(
UI: {
Identification: [
{ Value: ID }
],
SelectionFields: [
keyDate,
ID
],
LineItem: [
{ Value: ID },
{ Value: Item },
{ Value: validFrom },
{ Value: validTo },
],
HeaderInfo: {
TypeName: 'Agreement Item Price',
TypeNamePlural: 'Agreement Item Price',
Title: { Value: ID },
Description: { Value: Item }
},
Facets: [
{ $Type: 'UI.ReferenceFacet', Label: 'General', Target: '@UI.FieldGroup#General' }
],
FieldGroup#General: {
Data: [
{ $Type: 'UI.DataField', Value: ID, Label: 'ID' },
{ $Type: 'UI.DataField', Value: Item, Label: 'Item ID' },
{ $Type: 'UI.DataField', Value: validFrom, Label: 'Valid From' },
{ $Type: 'UI.DataField', Value: validTo, Label: 'Valid To' },
]
}
}
);