on 2016 Apr 29 4:14 AM
Hi ,
I am using a simple component.js for my ui5 app .
It is running perfectly fine on the versions 1.28 and above .
But the same is throwing errors for version 1.26.3 .
As our netweaver UI5 version is 1.26 we have to use 1.26 version.
Please suggest.
Component JS Code
sap.ui.core.UIComponent.extend("portal.app.Component", {
metadata: {
rootView : {
viewName: ".portal.app.view.Container",
type: "JS"
},
routing: {
config: {
routerClass: "sap.m.routing.Router",
viewType: "JS",
viewPath: "portal.app.view",
controlId: "idContainer",
controlAggregation: "pages"
},
routes: [
{
pattern: "",
name: "home",
viewName: "Home"
},
{
pattern: "details",
name: "details",
viewName: "Details"
}
],
},
},
init: function () {
sap.ui.core.UIComponent.prototype.init.apply(this, arguments);
this.getRouter().initialize();
}
});
Below is the error :
at line 34 (sap.ui.core.UIComponent.prototype.init.apply(this, arguments);)
Now if i am using
https://sapui5.hana.ondemand.com/1.26.3/resources/sap-ui-core.js
I am getting the error but
if i am using
https://sapui5.hana.ondemand.com/1.28.9/resources/sap-ui-core.js
i am not getting any error.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pinaki,
try this
Thanks,
Sonam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
62 | |
12 | |
7 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.