on 05-05-2017 12:31 PM
I need to get a property JSON in my SAPUI5 Application
OData.request({
requestUri : "/sap/opu/odata/sap/ZGW_TRANSF_APPROVAL_SRV_02/zset_transferset",
method : "POST",
headers : oHeaders,
data:oParameters
},
function(data,request) {
MessageToast.show("Transferência concluida!");
// location.reload(true);
}, function(err) {
MessageToast.show("fail!");
})
I need to show the OData property messageerror(like a image) in my code instead the message "fail"
I solved it
MessageToast.show(JSON.stringify(data["messageerror"]));
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
74 | |
10 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.