cancel
Showing results for 
Search instead for 
Did you mean: 

ErrorHandler.js file use in SAPUI5 App

former_member567509
Participant
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member302431
Discoverer
0 Kudos

Hi,

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,

Archana