cancel
Showing results for 
Search instead for 
Did you mean: 

How get the property JSON odata sapui5

rubens12
Participant
0 Kudos

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"

View Entire Topic
rubens12
Participant
0 Kudos

I solved it

MessageToast.show(JSON.stringify(data["messageerror"]));