Hello Experts,
We are developing a custom Fiori application (extension for standard Inbox app). We have one requirement where we need to display multiple error messages (Inner errors) from the Response code that we get from the gateway. However, on trying with the following code, I only get the parent error message.
To explain a bit further, refer the image for Response body. The highlighted part is displayed on executing the following code.
function(oError)
{
var errobj1 = JSON.parse(oError.response.body);
sap.m.MessageBox.show(errobj1.error.message.value, sap.m.MessageBox.Icon.ERROR,"Error in Rejection");
}
However, I want the Message ("invoice cannot be rejected") in the errordetails to be displayed.
Will it be possible to achieve it through tweaking the above code?
Thanks in Advance!