Hello everyone,
All the applications that we are developing in our product will have the same interface using a shell element.
I am trying to extend this shell element, so if in the future we need to change this interface,
we'll only needed to change only this shell extended file.
So, I created the file 'test/lib/shell.js' in these file I declared a extented shell;
sap.ui.ux3.Shell.extend("test.myshell", {
});
Then I referenced the file in the html file
<script src="/teste/lib/shell.js"></script>
After that in the view
createContent : function(oController) {
// Create a simple button to be the shell content
var btn = new sap.ui.commons.Button({
text: "Buy this book",
});
var oShell = new teste.lib.myshell("appShell", {
appTitle: "Something",
worksetItems: [new sap.ui.ux3.NavigationItem("WI_home", {
key: "wi_selscreen",
text: "Home"
})
],
content: [btn]
});
return oShell;
}
But when I run the html I receive this error menssage in the javascript console:
Uncaught Error: failed to load 'test/DpShellRenderer.js' from /sap/ui5/1/resources/test/myshellRenderer.js: 404 - Not Found
It's trying to load the file /sap/ui5/1/resources/test/myshellRenderer.js: which does not exist, only it's parent /sap/ui5/1/resources/test/Shellrenderer.js
I tried also to redefine its renderer function like that:
renderer:"sap.ui.ux3.ShellRenderer"
but then I got the error : Uncaught TypeError: Cannot read property 'render' of undefined , I belive that some shell resources are missing.
Does anyone have any suggestion?