on 08-18-2022 6:25 PM
Hi,
I would like to know how to manage the creation in the mock context when I code submitChanges() ?
I tried all the handlers I found into the Git repository documentation but no one seams to react when I do the submitChange.
To be more specific, two methods are called :
Maybe the addEntry is my solution, but how does it works ?
By the way, gregorw is it possible to provide CRUD sample in Fiori Tools Sample ?
Regards,
Joseph
If you plan on intercepting and modifying what has been sent for a create then addEntry is what you are looking for indeed.
You can see how it works similarly with the updateEntry here https://github.com/SAP/open-ux-odata/blob/172238c9191de9fd2484ad643cb3cf72f67450fd/packages/fe-mocks... but the addEntry would behave the same, you would have to call this.base.addEntry with the updated payload for it to be saved.
Hope this helps !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
9 | |
8 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.