cancel
Showing results for 
Search instead for 
Did you mean: 

i18n Model not found after navigation in Launchpad

frederikdevinck
Explorer
0 Kudos

Hi Experts,

I have the "strange" effect, that the i18n Model in my Custom UI5 app is not found after navigation in the Launchpad.

When the app is loaded in the launchpad for the first time, there is no issue.

When the user navigates to another app and returns, the i18n binding is not there anymore.

I get the following error:

"Uncaught TypeError: Cannot read property 'getResourceBundle' of undefined"

The other models in my application, are found.

The i18n model is created in the Component.js file, based on the best practices.

I have checked other discussions(like ) , but no suitable solution was found.

SAPUI5 Version: 1.28.22

SAP_UI7400015SAPK-74015INSAPUIUser Interface Technology 7.40

Custom UI5 apps all generated by the WebIDE, with version 1.28 of SAPUI5 selected.

Thanks in advance!

Accepted Solutions (0)

Answers (1)

Answers (1)

frederikdevinck
Explorer
0 Kudos

Just found that:

this.getView().getModel('i18n') does not return the model, but:

sap.ui.component(sap.ui.core.Component.getOwnerIdFor(me.getView())).getModel('i18n)

does return the model..