on 07-04-2016 1:33 PM
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_UI | 740 | 0015 | SAPK-74015INSAPUI | User Interface Technology 7.40 |
Custom UI5 apps all generated by the WebIDE, with version 1.28 of SAPUI5 selected.
Thanks in advance!
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..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.