I got it how to navigate between pages and load them at any event. The best way is to define sap.m.App it act as a container to load sap.m.Page so u can create as many pages u want and add to the sap.m.App using addPage('<pagename>'). and using app.to() you can navigate to the pages with its IDs. You have to place this sap.m.App at the index.html using placeAt(). and load other views as required. One important thing make the app variable as global to access in all pages.
↧