on 2024 Jun 22 10:45 AM
Hi,
I'm trying to implement a controller OData v4 create on a ListBinding as described on the documentation page. Essentials > Data Binding > Models > OData V4 Model > Creating an Entitiy
https://sapui5.hana.ondemand.com/#/topic/c9723f8265f644af91c0ed941e114d46
When the backend returns an error (in our case because we have a unique constraint on one of the fields, but it can just be mimic-ed by having CAP send a reject('some reason) in the onHandler) the error shows in the developer console logging. However the execution stops on the "created()" Promise. It doesn't go into the .then() or .catch().
I found similar older issues on the links below.
https://github.com/SAP/openui5/issues/3760
Any ideas?
Hi,
In your error handler you are expecting a property called canceled (isn't that with double l?). Please check if that property exist, otherwise you have a js error in an error handler and nothing will happen.
Kind regards,
Noël
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
69 | |
8 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.