Hi Vivek,
You may want to check returned param oData.
function(oData, oResponse) {
sap.m.MessageToast.show(oResponse);
}
See if anything there.
You can also open chrome developer tools (f12) and put the debug at your code here and explore params oData & oResponse.
Hi Tri,
I checked via Debugging and i did not see oResponse parameter at all. I found only oData and it carry ExMessage value(Reponse message from back end) which we are looking.
Hence my code is
sap.m.MessageToast.show(oData.ExMessage);
This is now displaying what we expect. Thanks for your help.
Thanks
Hello,
Just for design purpose, do not use MessageToast for handling error messages. Your end user should miss the information.
Prefer using MessagePopover or DialogConfirm UI Control.
Have a look at the SAP Fiori Guidelines for handling messaging
Regards
Add comment