This commit is contained in:
oblomov-dev 2024-11-30 17:46:54 +01:00 committed by GitHub
parent e53aa52fe6
commit 54136bbc64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,9 @@ sap.ui.define(["sap/ui/core/UIComponent", "z2ui5/model/models","z2ui5/cc/Server"
UIComponent.prototype.init.apply(this, arguments);
if (typeof z2ui5 == 'undefined'){
z2ui5 = {};
}
this.getRouter().initialize();
z2ui5.oRouter = this.getRouter();
this.setModel(Models.createDeviceModel(), "device");

View File

@ -28,6 +28,9 @@ CLASS z2ui5_cl_app_component_js IMPLEMENTATION.
`` && |\n| &&
` UIComponent.prototype.init.apply(this, arguments);` && |\n| &&
`` && |\n| &&
` if (typeof z2ui5 == 'undefined'){` && |\n| &&
` z2ui5 = {};` && |\n| &&
` }` && |\n| &&
` this.getRouter().initialize();` && |\n| &&
` z2ui5.oRouter = this.getRouter();` && |\n| &&
` this.setModel(Models.createDeviceModel(), "device");` && |\n| &&