@@ -35,6 +35,11 @@ annotate AdminService.Books with @(UI : {
3535 $Type : ' UI.ReferenceFacet ' ,
3636 Label : ' {i18n>Admin} ' ,
3737 Target : ' @UI.FieldGroup#Admin '
38+ },
39+ {
40+ $Type : ' UI.ReferenceFacet ' ,
41+ Label : ' {i18n>Contents} ' ,
42+ Target : ' contents/@UI.PresentationVariant '
3843 }
3944 ],
4045 FieldGroup # General : {Data : [
@@ -59,7 +64,11 @@ annotate AdminService.Books with @(UI : {
5964 ]}
6065});
6166
62- // Add Value Help for Tree Table
67+
68+ ////////////////////////////////////////////////////////////////////////////
69+ //
70+ // Value Help for Tree Table
71+ //
6372annotate AdminService.Books with {
6473 genre @ (Common : {
6574 Label : ' Genre ' ,
@@ -98,6 +107,44 @@ annotate AdminService.GenreHierarchy with @UI: {
98107 }]
99108};
100109
110+ annotate AdminService.ContentsHierarchy with @ UI : {
111+ PresentationVariant : {
112+ $Type : ' UI.PresentationVariantType ' ,
113+ RequestAtLeast : [name ],
114+ Visualizations : [' @UI.LineItem' , ],
115+ },
116+ LineItem : [{
117+ $Type : ' UI.DataField ' ,
118+ Value : name ,
119+ },
120+ {
121+ $Type : ' UI.DataField ' ,
122+ Value : page ,
123+ }],
124+ HeaderInfo : {
125+ $Type : ' UI.HeaderInfoType ' ,
126+ TypeName : ' Organization Level ' ,
127+ TypeNamePlural : ' Organization Levels ' ,
128+ Title : {
129+ $Type : ' UI.DataField ' ,
130+ Value : name ,
131+ }
132+ },
133+ FieldGroup : {
134+ $Type : ' UI.FieldGroupType ' ,
135+ Data : [{
136+ $Type : ' UI.DataField ' ,
137+ Value : page ,
138+ Label : ' Page Number '
139+ }],
140+ },
141+ Facets : [{
142+ $Type : ' UI.ReferenceFacet ' ,
143+ Target : ' @UI.FieldGroup ' ,
144+ Label : ' Informations ' ,
145+ }],
146+ };
147+
101148////////////////////////////////////////////////////////////
102149//
103150// Draft for Localized Data
@@ -137,6 +184,26 @@ annotate AdminService.Books.texts {
137184 }
138185}
139186
187+ ////////////////////////////////////////////////////////////
188+ //
189+ // Annotations for hierarchy ContentsHierarchy
190+ //
191+ annotate AdminService.ContentsHierarchy with @ Aggregation . RecursiveHierarchy # ContentsHierarchy : {
192+ $Type : ' Aggregation.RecursiveHierarchyType ' ,
193+ NodeProperty : ID , // identifies a node
194+ ParentNavigationProperty : parent // navigates to a node's parent
195+ };
196+
197+ annotate AdminService.ContentsHierarchy with @ Hierarchy . RecursiveHierarchy # ContentsHierarchy : {
198+ $Type : ' Hierarchy.RecursiveHierarchyType ' ,
199+ LimitedDescendantCount : LimitedDescendantCount ,
200+ DistanceFromRoot : DistanceFromRoot ,
201+ DrillState : DrillState ,
202+ Matched : Matched ,
203+ MatchedDescendantCount : MatchedDescendantCount ,
204+ LimitedRank : LimitedRank
205+ };
206+
140207annotate AdminService.Books actions {
141208 @ (
142209 Common . SideEffects : {
0 commit comments