move hierarchy to fiori
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
using { AdminService } from '@capire/bookstore';
|
||||
using { sap.capire.bookshop } from '../../db/hierarchy';
|
||||
using from '../common'; // to help UI linter get the complete annotations
|
||||
|
||||
extend service AdminService with {
|
||||
@readonly
|
||||
@cds.search: {name}
|
||||
entity GenreHierarchy as projection on bookshop.Genres;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Books Object Page
|
||||
|
||||
@@ -85,10 +85,6 @@ annotate my.Genres with @(
|
||||
}
|
||||
);
|
||||
|
||||
annotate my.Genres with {
|
||||
ID @Common.Text : name @Common.TextArrangement : #TextOnly;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Genre Details
|
||||
|
||||
32
fiori/db/hierarchy.cds
Normal file
32
fiori/db/hierarchy.cds
Normal file
@@ -0,0 +1,32 @@
|
||||
namespace sap.capire.bookshop;
|
||||
using { sap.capire.bookshop.Genres } from '@capire/bookshop';
|
||||
|
||||
aspect Hierarchy {
|
||||
LimitedDescendantCount : Integer64 = null;
|
||||
DistanceFromRoot : Integer64 = null;
|
||||
DrillState : String = null;
|
||||
Matched : Boolean = null;
|
||||
MatchedDescendantCount : Integer64 = null;
|
||||
LimitedRank : Integer64 = null;
|
||||
}
|
||||
|
||||
|
||||
annotate Hierarchy with @Capabilities.FilterRestrictions.NonFilterableProperties: [
|
||||
'LimitedDescendantCount',
|
||||
'DistanceFromRoot',
|
||||
'DrillState',
|
||||
'Matched',
|
||||
'MatchedDescendantCount',
|
||||
'LimitedRank'
|
||||
];
|
||||
|
||||
annotate Hierarchy with @Capabilities.SortRestrictions.NonSortableProperties: [
|
||||
'LimitedDescendantCount',
|
||||
'DistanceFromRoot',
|
||||
'DrillState',
|
||||
'Matched',
|
||||
'MatchedDescendantCount',
|
||||
'LimitedRank'
|
||||
];
|
||||
|
||||
extend sap.capire.bookshop.Genres with Hierarchy;
|
||||
Reference in New Issue
Block a user