Skip to Content

ErrorHandler.js file use in SAPUI5 App

Hello experts.

I have developed an SAPUI5 app and it is working well and i have few questions.

1. I have simply called odata in onInit function of controller to retrieve info needed for F4 help on fields and to create an entity. is that fine or it can be done in batch call. what if i change , "useBatch" to false.

2. how do i use ErrorHandler.js file in my app?

3. currently my app has index.html file. how do i make it ready for FLP?

4. I can run my app only with index.html file. don;t see an option to run it as an "App". what is needed to be done to see that option?

Appreciate any guidance.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Dec 20, 2018 at 01:30 PM


    I have similar queries. ErrorHandler.js is not available when we create application based on SAPUI5 template. Now, if I wish to handle server errors through ErrorHandler, how do I achieve the same? I created and placed the file in controller folder, declared the ErrorHandler in COmponent.js, But it never gets called

    Thanks & Regards,


    Add comment
    10|10000 characters needed characters exceeded