rm tree table in catalogservice
This commit is contained in:
@@ -83,26 +83,6 @@ annotate AdminService.GenreHierarchy with {
|
||||
ID @UI.Hidden;
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Tree Table
|
||||
//
|
||||
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
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Draft for Localized Data
|
||||
|
||||
@@ -55,16 +55,3 @@ annotate CatalogService.Books with @(UI : {
|
||||
{Value : currency.symbol},
|
||||
]
|
||||
}, );
|
||||
|
||||
annotate CatalogService.GenreHierarchy with @UI: {
|
||||
PresentationVariant : {
|
||||
$Type : 'UI.PresentationVariantType',
|
||||
RequestAtLeast: [name],
|
||||
Visualizations: ['@UI.LineItem'],
|
||||
},
|
||||
LineItem : [{
|
||||
$Type: 'UI.DataField',
|
||||
Value: name,
|
||||
Label : 'Genre'
|
||||
}],
|
||||
};
|
||||
@@ -1,20 +1,20 @@
|
||||
/*
|
||||
UI annotations for the Browse GenreHierarchy App
|
||||
*/
|
||||
using CatalogService from '@capire/bookstore';
|
||||
using AdminService from '@capire/bookshop';
|
||||
|
||||
annotate CatalogService.GenreHierarchy with @Aggregation.RecursiveHierarchy#GenreHierarchy: {
|
||||
$Type: 'Aggregation.RecursiveHierarchyType',
|
||||
NodeProperty: ID, // identifies a node
|
||||
ParentNavigationProperty: parent // navigates to a node's parent
|
||||
};
|
||||
|
||||
annotate CatalogService.GenreHierarchy with @Hierarchy.RecursiveHierarchy#GenreHierarchy: {
|
||||
$Type: 'Hierarchy.RecursiveHierarchyType',
|
||||
LimitedDescendantCount: LimitedDescendantCount,
|
||||
DistanceFromRoot: DistanceFromRoot,
|
||||
DrillState: DrillState,
|
||||
Matched: Matched,
|
||||
MatchedDescendantCount: MatchedDescendantCount,
|
||||
LimitedRank: LimitedRank
|
||||
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
|
||||
};
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"dataSources": {
|
||||
"CatalogService": {
|
||||
"uri": "browse/",
|
||||
"AdminService": {
|
||||
"uri": "admin/",
|
||||
"type": "OData",
|
||||
"settings": {
|
||||
"odataVersion": "4.0"
|
||||
@@ -25,9 +25,9 @@
|
||||
"inbounds": {
|
||||
"Genres-display": {
|
||||
"signature": {
|
||||
"parameters": {},
|
||||
"additionalParameters": "allowed"
|
||||
},
|
||||
"parameters": {},
|
||||
"additionalParameters": "allowed"
|
||||
},
|
||||
"title": "{{appTitle}}",
|
||||
"semanticObject": "GenreHierarchy",
|
||||
"action": "display",
|
||||
@@ -63,7 +63,12 @@
|
||||
"tablet": true,
|
||||
"phone": true
|
||||
},
|
||||
"supportedThemes": ["sap_hcb", "sap_belize", "sap_belize_deep", "sap_fiori_3"]
|
||||
"supportedThemes": [
|
||||
"sap_hcb",
|
||||
"sap_belize",
|
||||
"sap_belize_deep",
|
||||
"sap_fiori_3"
|
||||
]
|
||||
},
|
||||
"sap.ui5": {
|
||||
"resources": {
|
||||
@@ -81,7 +86,7 @@
|
||||
"uri": "i18n/i18n.properties"
|
||||
},
|
||||
"": {
|
||||
"dataSource": "CatalogService",
|
||||
"dataSource": "AdminService",
|
||||
"settings": {
|
||||
"synchronizationMode": "None",
|
||||
"operationMode": "Server",
|
||||
@@ -96,56 +101,56 @@
|
||||
}
|
||||
},
|
||||
"routing": {
|
||||
"routes": [
|
||||
{
|
||||
"pattern": ":?query:",
|
||||
"name": "GenreHierarchyList",
|
||||
"target": "GenreHierarchyList"
|
||||
},
|
||||
{
|
||||
"pattern": "GenreHierarchy({key}):?query:",
|
||||
"name": "GenreHierarchyDetails",
|
||||
"target": "GenreHierarchyDetails"
|
||||
}
|
||||
],
|
||||
"targets": {
|
||||
"GenreHierarchyList": {
|
||||
"type": "Component",
|
||||
"id": "GenreHierarchyList",
|
||||
"name": "sap.fe.templates.ListReport",
|
||||
"options": {
|
||||
"settings" : {
|
||||
"contextPath" : "/GenreHierarchy",
|
||||
"navigation" : {
|
||||
"GenreHierarchy" : {
|
||||
"detail" : {
|
||||
"route" : "GenreHierarchyDetails"
|
||||
}
|
||||
}
|
||||
},
|
||||
"controlConfiguration": {
|
||||
"@com.sap.vocabularies.UI.v1.LineItem": {
|
||||
"tableSettings": {
|
||||
"hierarchyQualifier": "GenreHierarchy",
|
||||
"type": "TreeTable"
|
||||
}
|
||||
"routes": [
|
||||
{
|
||||
"pattern": ":?query:",
|
||||
"name": "GenreHierarchyList",
|
||||
"target": "GenreHierarchyList"
|
||||
},
|
||||
{
|
||||
"pattern": "GenreHierarchy({key}):?query:",
|
||||
"name": "GenreHierarchyDetails",
|
||||
"target": "GenreHierarchyDetails"
|
||||
}
|
||||
],
|
||||
"targets": {
|
||||
"GenreHierarchyList": {
|
||||
"type": "Component",
|
||||
"id": "GenreHierarchyList",
|
||||
"name": "sap.fe.templates.ListReport",
|
||||
"options": {
|
||||
"settings": {
|
||||
"contextPath": "/GenreHierarchy",
|
||||
"navigation": {
|
||||
"GenreHierarchy": {
|
||||
"detail": {
|
||||
"route": "GenreHierarchyDetails"
|
||||
}
|
||||
}
|
||||
},
|
||||
"controlConfiguration": {
|
||||
"@com.sap.vocabularies.UI.v1.LineItem": {
|
||||
"tableSettings": {
|
||||
"hierarchyQualifier": "GenreHierarchy",
|
||||
"type": "TreeTable"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"GenreHierarchyDetails": {
|
||||
"type": "Component",
|
||||
"id": "GenreHierarchyDetails",
|
||||
"name": "sap.fe.templates.ObjectPage",
|
||||
"options": {
|
||||
"settings" : {
|
||||
"contextPath" : "/GenreHierarchy"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
"GenreHierarchyDetails": {
|
||||
"type": "Component",
|
||||
"id": "GenreHierarchyDetails",
|
||||
"name": "sap.fe.templates.ObjectPage",
|
||||
"options": {
|
||||
"settings": {
|
||||
"contextPath": "/GenreHierarchy"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contentDensities": {
|
||||
"compact": true,
|
||||
"cozy": true
|
||||
|
||||
Reference in New Issue
Block a user