-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Demonstrate Hierarchy Functions #416
Merged
Merged
Changes from 28 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
16c919d
WIP: Demonstrate Hierarchy Functions (#388)
etimr cb392f7
Fix: ValueHelp Dialog (#397)
etimr 2d8f6f8
Fix value help (#398)
agoerler 1a037e3
Update fiori-service.cds
agoerler 357611e
UI: Hide ID in ValueHelp (#399)
etimr 7b6179e
Update to 3.5.0 & avoid parent_id/node_id projection
agoerler c7f50a8
Demonstrate custom logic for Tree Tables (#393)
etimr 2897b41
Merge remote-tracking branch 'origin/feature-tree-table' into avoidRe…
agoerler 45e6b03
Support of ExpandLevels (#403)
etimr 7bf5397
cleanup
agoerler 4b5892d
Merge remote-tracking branch 'origin/feature-tree-table' into avoidRe…
agoerler cd01357
No projection (#401)
agoerler 3cd209a
fix sorter
agoerler a8ea2f2
Merge remote-tracking branch 'origin/feature-tree-table' into avoidRe…
agoerler 7e2153e
added tests for GenreHierarchy
OlenaTi ae813c2
test in hybrid mode
agoerler b8d8285
Test: added tests for GenreHierarchy (#404)
etimr 3902076
update test
agoerler 9fe4f93
Merge remote-tracking branch 'origin/feature-tree-table' into tree-ta…
agoerler 3a19bc0
Merge remote-tracking branch 'origin/main' into feature-tree-table
agoerler 903852e
parnt -> parent
agoerler a6078cd
Merge remote-tracking branch 'origin/main' into feature-tree-table
agoerler 17354c9
fix annotation
agoerler ee8b025
Added Tree Tables to Readme (#414)
etimr 81bd62e
Test: added additional tests for GenreHierarchy (#413)
etimr a9db367
fix import
agoerler 333d2da
more genres (#412)
eugene-andreev b7953a0
update to 3.6.0-m2451
agoerler 1c85e8a
remove DEBUG
etimr 8fd4aad
3.6.0
eugene-andreev 0e45154
formatting
agoerler 88c34df
Merge branch 'main' into feature-tree-table
agoerler c127115
add disclaimer
agoerler File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
UI annotations for the Browse GenreHierarchy App | ||
*/ | ||
|
||
using AdminService from '../../srv/admin-service'; | ||
|
||
|
||
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', | ||
// ExternalKey : null, | ||
LimitedDescendantCount: LimitedDescendantCount, | ||
DistanceFromRoot: DistanceFromRoot, | ||
DrillState: DrillState, | ||
Matched: Matched, | ||
MatchedDescendantCount: MatchedDescendantCount, | ||
LimitedRank: LimitedRank | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "genres", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"license": "ISC" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
sap.ui.define(["sap/fe/core/AppComponent"], ac => ac.extend("genres.Component", { | ||
metadata:{ manifest:'json' } | ||
})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
appTitle=Browse Genres | ||
appDescription=Genres as Tree View |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
appTitle=Zeige Genres | ||
appDescription=Genres als Baumansicht |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<title>Browse Genres</title> | ||
<style> | ||
html, body, body > div, #container, #container-uiarea { | ||
height: 100%; | ||
} | ||
</style> | ||
<script | ||
id="sap-ui-bootstrap" | ||
src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js" | ||
data-sap-ui-theme="sap_fiori_3" | ||
data-sap-ui-resourceroots='{ | ||
"genres": "./" | ||
}' | ||
data-sap-ui-oninit="module:sap/ui/core/ComponentSupport" | ||
data-sap-ui-compatVersion="edge" | ||
data-sap-ui-async="true" | ||
data-sap-ui-frameOptions="trusted" | ||
></script> | ||
</head> | ||
<body class="sapUiBody sapUiSizeCompact" id="content"> | ||
<div | ||
data-sap-ui-component | ||
data-name="genres" | ||
data-id="container" | ||
data-settings='{"id" : "genres"}' | ||
data-handle-validation="true" | ||
></div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
{ | ||
"_version": "1.8.0", | ||
"sap.app": { | ||
"id": "genres", | ||
"type": "application", | ||
"title": "{{appTitle}}", | ||
"description": "{{appDescription}}", | ||
"applicationVersion": { | ||
"version": "1.0.0" | ||
}, | ||
"dataSources": { | ||
"AdminService": { | ||
"uri": "/api/admin/", | ||
"type": "OData", | ||
"settings": { | ||
"odataVersion": "4.0" | ||
} | ||
} | ||
}, | ||
"-sourceTemplate": { | ||
"id": "ui5template.basicSAPUI5ApplicationProject", | ||
"-id": "ui5template.smartTemplate", | ||
"-version": "1.40.12" | ||
}, | ||
"crossNavigation": { | ||
"inbounds": { | ||
"Genres-show": { | ||
"signature": { | ||
"parameters": {}, | ||
"additionalParameters": "allowed" | ||
}, | ||
"semanticObject": "GenreHierarchy", | ||
"action": "show" | ||
} | ||
} | ||
} | ||
}, | ||
"sap.ui5": { | ||
"dependencies": { | ||
"minUI5Version": "1.122.0", | ||
"libs": { | ||
"sap.fe.templates": {} | ||
} | ||
}, | ||
"models": { | ||
"i18n": { | ||
"type": "sap.ui.model.resource.ResourceModel", | ||
"uri": "i18n/i18n.properties" | ||
}, | ||
"": { | ||
"dataSource": "AdminService", | ||
"settings": { | ||
"synchronizationMode": "None", | ||
"operationMode": "Server", | ||
"autoExpandSelect" : true, | ||
"earlyRequests": true, | ||
"groupProperties": { | ||
"default": { | ||
"submit": "Auto" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"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" : { | ||
"entitySet" : "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" : { | ||
"entitySet": "GenreHierarchy" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"contentDensities": { | ||
"compact": true, | ||
"cozy": true | ||
} | ||
}, | ||
"sap.ui": { | ||
"technology": "UI5", | ||
"fullWidth": false | ||
}, | ||
"sap.fiori": { | ||
"registrationIds": [], | ||
"archeType": "transactional" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather recommend usage of existing profiles in application.yaml, e.g.
cloud
, which expects HANA.