forked from SAP-samples/fiori-elements-feature-showcase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
field-control.cds
68 lines (55 loc) · 2.4 KB
/
field-control.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
using service1 from '../../srv/service';
//
// annotations that control the behavior of fields and actions
//
annotate service1.RootEntities {
ID @UI.Hidden @readonly @mandatory @UI.ExcludeFromNavigationContext;
stringProperty @Core.Immutable @mandatory @UI.ExcludeFromNavigationContext; //Search-Term: #CreationDialog
uom @UI.Hidden;
childEntity2 @(
//Search-Term: #Navigation
//Semantic Object annotation in order to show the links to the semantic object apps in the quick view facet
Common.SemanticObject : 'FeatureShowcaseChildEntity2',
Common.SemanticObjectMapping : [
{
// Semantic object mapping is done, to set filter values when navigation to the semantic object map
// No logical sensen behind the connection - just to demonstrate
$Type : 'Common.SemanticObjectMappingType',
LocalProperty : integerValue,
SemanticObjectProperty : 'field3',
},
],
);
areaChartDeviationLowerBoundValue @UI.HiddenFilter; //Search-Term: #HideFilter
areaChartDeviationUpperBoundValue @UI.HiddenFilter;
areaChartToleranceLowerBoundValue @UI.HiddenFilter;
areaChartToleranceUpperBoundValue @UI.HiddenFilter;
fieldWithURLtext @UI.HiddenFilter;
/** Search-Term: #FilterDefault
For a default filter value in the list report. Does not support complex values */
//stringProperty @Common.FilterDefaultValue : 'Root entity 4';
region_country_code @UI.HiddenFilter; //Filter not available in the list report
deletePossible @UI.Hidden;
updateHidden @UI.Hidden;
fieldWithURL @UI.Hidden;
email @mandatory;
};
annotate service1.ChildEntities1 {
ID @UI.Hidden @readonly @mandatory;
parent @UI.Hidden;
field @Core.Immutable @mandatory;
};
annotate service1.criticalAction with @(
Common.IsActionCritical : true //Search-Term: #CriticalAction
);
annotate service1.GrandChildEntities {
ID @UI.Hidden @readonly @mandatory;
parent @UI.Hidden;
};
annotate service1.ChildEntities2 {
ID @UI.Hidden @readonly @mandatory;
};
annotate service1.ChartDataEntities {
ID @UI.Hidden @readonly @mandatory;
parent @UI.Hidden @Core.Immutable;
}