Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions app/appconfig/fioriSandboxConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,6 @@
"title": "Browse Books",
"targetURL": "#Books-display"
}
},
{
"id": "BrowseGenres",
"tileType": "sap.ushell.ui.tile.StaticTile",
"properties": {
"title": "Browse Genres",
"targetURL": "#Genres-display"
}
}
]
},
Expand All @@ -52,6 +44,14 @@
"targetURL": "#Authors-manage"
}
},
{
"id": "ManageGenres",
"tileType": "sap.ushell.ui.tile.StaticTile",
"properties": {
"title": "Manage Genres",
"targetURL": "#Genres-manage"
}
},
{
"id": "ManageOrders",
"tileType": "sap.ushell.ui.tile.StaticTile",
Expand Down Expand Up @@ -114,10 +114,10 @@
"url": "/admin-authors/webapp"
}
},
"BrowseGenres": {
"ManageGenres": {
"semanticObject": "Genres",
"action": "display",
"title": "Browse Genres",
"action": "manage",
"title": "Manage Genres",
"signature": {
"parameters": {
"Genre.ID": {
Expand Down
5 changes: 4 additions & 1 deletion app/genres/fiori-service.cds
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
using { sap.capire.bookshop.Genres } from '@capire/bookshop';

annotate AdminService.Genres with @odata.draft.enabled;
// needed for changing a parent
annotate AdminService.Genres with @odata.draft.bypass;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does that mean the maintenance of trees only works with bypass enabled?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, you can CREATE, EDIT and DELETE nodes (root and child) without @odata.draft.bypass annotation, only CUT/PASTE (changing a parent with @odata.bind) doesn't work without @odata.draft.bypass, because we are modifying an active entity directly.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I propose we wait until the next release and then use cds.fiori.direct_crud to enable it globally.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


annotate Genres with @cds.search: {name};
annotate Genres with @readonly;
annotate Genres with {
name @title: '{i18n>Genre}';
}
Expand Down
2 changes: 1 addition & 1 deletion app/genres/webapp/i18n/i18n.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#XTIT
appTitle=Browse Genres
appTitle=Manage Genres
#XTXT
appDescription=Genres as Tree View
2 changes: 1 addition & 1 deletion app/genres/webapp/i18n/i18n_de.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
appTitle=Zeige Genres
appTitle=Verwalte Genres
appDescription=Genres als Baumansicht