fix after moving to fiori
This commit is contained in:
@@ -1,12 +1,7 @@
|
||||
using { AdminService } from '@capire/bookstore';
|
||||
using { sap.capire.bookshop } from '../../db/hierarchy';
|
||||
using { AdminService } from '../services';
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
|
||||
@@ -114,6 +114,24 @@
|
||||
"url": "/admin-authors/webapp"
|
||||
}
|
||||
},
|
||||
"BrowseGenres": {
|
||||
"semanticObject": "Genres",
|
||||
"action": "display",
|
||||
"title": "Browse Genres",
|
||||
"signature": {
|
||||
"parameters": {
|
||||
"Genre.ID": {
|
||||
"renameTo": "ID"
|
||||
}
|
||||
},
|
||||
"additionalParameters": "ignored"
|
||||
},
|
||||
"resolutionResult": {
|
||||
"applicationType": "SAPUI5",
|
||||
"additionalInformation": "SAPUI5.Component=genres",
|
||||
"url": "/genres/webapp"
|
||||
}
|
||||
},
|
||||
"ManageBooks": {
|
||||
"semanticObject": "Books",
|
||||
"action": "manage",
|
||||
|
||||
@@ -1,20 +1 @@
|
||||
/*
|
||||
UI annotations for the Browse GenreHierarchy App
|
||||
*/
|
||||
using AdminService from '@capire/bookshop';
|
||||
|
||||
annotate AdminService.GenreHierarchy with @Aggregation.RecursiveHierarchy #GenreHierarchy: {
|
||||
$Type : 'Aggregation.RecursiveHierarchyType',
|
||||
NodeProperty : ID, // identifies a node
|
||||
ParentNavigationProperty: parent // navigates to a node's parent
|
||||
};
|
||||
|
||||
annotate AdminService.GenreHierarchy with @Hierarchy.RecursiveHierarchy #GenreHierarchy: {
|
||||
$Type : 'Hierarchy.RecursiveHierarchyType',
|
||||
LimitedDescendantCount: LimitedDescendantCount,
|
||||
DistanceFromRoot : DistanceFromRoot,
|
||||
DrillState : DrillState,
|
||||
Matched : Matched,
|
||||
MatchedDescendantCount: MatchedDescendantCount,
|
||||
LimitedRank : LimitedRank
|
||||
};
|
||||
|
||||
@@ -1,6 +1,31 @@
|
||||
/*
|
||||
This model controls what gets served to Fiori frontends...
|
||||
*/
|
||||
using { sap.capire.bookshop } from '../db/hierarchy';
|
||||
using { AdminService } from '@capire/bookstore';
|
||||
|
||||
extend service AdminService with {
|
||||
@readonly
|
||||
@cds.search: {name}
|
||||
entity GenreHierarchy as projection on bookshop.Genres;
|
||||
}
|
||||
|
||||
annotate AdminService.GenreHierarchy with @Aggregation.RecursiveHierarchy #GenreHierarchy: {
|
||||
$Type : 'Aggregation.RecursiveHierarchyType',
|
||||
NodeProperty : ID, // identifies a node
|
||||
ParentNavigationProperty: parent // navigates to a node's parent
|
||||
};
|
||||
|
||||
annotate AdminService.GenreHierarchy with @Hierarchy.RecursiveHierarchy #GenreHierarchy: {
|
||||
$Type : 'Hierarchy.RecursiveHierarchyType',
|
||||
LimitedDescendantCount: LimitedDescendantCount,
|
||||
DistanceFromRoot : DistanceFromRoot,
|
||||
DrillState : DrillState,
|
||||
Matched : Matched,
|
||||
MatchedDescendantCount: MatchedDescendantCount,
|
||||
LimitedRank : LimitedRank
|
||||
};
|
||||
|
||||
|
||||
using from './admin-authors/fiori-service';
|
||||
using from './admin-books/fiori-service';
|
||||
@@ -8,3 +33,4 @@ using from './browse/fiori-service';
|
||||
|
||||
using from './common';
|
||||
using from '@capire/bookstore/srv/mashup';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user