Skip to content

Conversation

@etimr
Copy link

@etimr etimr commented Nov 25, 2025

Tree Table entity Genres is now enabled for modifications.
Following functionality is tested on HANA and SQLite:

  • Create a new root node, create a new child node
  • Reassign a parent node either via Drag&Drop or Cut/Paste
  • Edit a node, keep draft for this node
  • Deep Delete with/without an existing child node with draft
  • ValueHelp


annotate AdminService.Genres with @odata.draft.enabled;
// needed for changing a parent
annotate AdminService.Genres with @odata.draft.bypass;
Copy link
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
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
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
Author

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants