Hi Christoph Nagl
The default script tag that comes when you create a mobile project in UI5 is for the default view and page that holds in this view is available in your view.js file in your project, basically you can remove this and add your own code.
The best way to understand is to find out and understand the elements that are needed when doing this, please find the below code that i did to understand how this is done in javascript:
steps are:
1) Your instantiate a new app object and set the initial page to the page your prefer in this case its "page1"
2) Then you create the page 1 with the necessary properties and methods.
3) Create the second page enabling the navigation button and code the tap method on the navigation button.
=========Code that goes for the createContent function in the view.js file==============
var app = new sap.m.App("myApp" , {initialPage: "Page1"});
var page1 = new sap.m.Page("Page1" , {
title: "Initial Page",
content: new sap.m.Button({
text:"Go to page 2",
tap: function(){
app.to("Page2");
}
})
});
var page2 = new sap.m.Page("Page2", {
title: "Page 2",
showNavButton: true,
navButtonTap: function(){
app.back();
},
content: new sap.m.Text({text: "Hellow Mobile World"})
});
app.addPage(page1).addPage(page2);
app.placeAt("content");
Try executing this and see if this works for your and then its a matter of doing it in XML.
please give us your comments on the results.
Thanks