Skip to content

Commit 463897d

Browse files
committed
.
1 parent d95d27a commit 463897d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

node.js/fiori.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ You can add your logic to the draft-specific events as follows:
5353
srv.on('boundActionOrFunction', 'MyEntity.drafts', /*...*/)
5454
```
5555

56+
The examples are provided for `.on` handlers, but the same is true for `.before` and `.after` handlers.
57+
5658
- The `CANCEL` event is triggered when you cancel the draft. In this case, the draft entity is deleted and the active entity isn't changed.
5759
- The `EDIT` event is triggered when you start editing an active entity. As a result `MyEntity.drafts` is created.
5860
- The `SAVE` event is just a shortcut for `['UPDATE', 'CREATE']` on an active entity. For drafts, this event is called when the user saves the draft.
@@ -61,7 +63,6 @@ You can add your logic to the draft-specific events as follows:
6163
When overriding `on` handlers, call `next()` to ensure that the built-in draft logic is executed. Otherwise, the draft flow will be broken.
6264
:::
6365

64-
The examples are provided for `.on` handlers, but the same is true for `.before` and `.after` handlers.
6566

6667
It's also possible to use the array variant to register a handler for both entities, for example: `srv.on('boundActionOrFunction', ['MyEntity', 'MyEntity.drafts'], /*...*/)`.
6768

0 commit comments

Comments
 (0)