on 05-16-2019 2:16 PM
HI .I'm wondering what I'm doing wrong when trying to catch error after creating error:
var oBinding = oTable.getBinding("items"),
oContext = oBinding.create({
"_id" : sName,
"createDate" : oDate.toISOString(),
"changeDate" : oDate.toISOString(),
"text" : ""
});
oContext.created().then(fnSuccess,fnError);
for above example if server will create an entity on backend server as the answer is called fnSuccess but if something is wrong ( error message is returned form backend server) I can catch up messages via Message manager but catch method is not executed - fnError- ( in oContext is see Promise object with status Rejected)
User | Count |
---|---|
79 | |
9 | |
9 | |
7 | |
7 | |
7 | |
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.