on 12-20-2018 2:39 PM
Hi All,
I need to display server errors like 500, 404 in Message Pop up on screen. I have created an application based on SAPUI5 template in SAP Web IDE. So the structure does not have ErrorHandler.js
This can be achieved through ErrorHandler.js in apps based on Fiori template.
Hence, I tried creating ErrorHandler and defining the same in Component.js but no error pop up is displayed. I can see the error only on console.
I tried attachMetaDataFailed as well in Component but doesn't work.
dataSource is defined as below in manifest.json
Service metadata error appears in Network tab and console even before Component-preload.js loads. How do I display this error in a pop - up. Please help
Thanks & Regards,
Archana
Yes, I have defined as per the structure, but havent given any name to the model. Structure wise it is all good. I am basically trying to handle metadata error and display the error in pop up message window
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you create an OData model in the manifest.json file that uses the OData service specified?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would recommend you to check it at SAPUI5 help here to understand the basic structure.
Nabheet
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.