on 2016 Jul 15 1:24 PM
Hello Everyone,
I have requirement to design application as shown in below Mock up.
I tried this code in app.view.controller but unable to route to “newView”.
onNewAssignment: function(oEvent){
this._router.navTo("newView");
}
View code:
In design, header bar and top navigation bar should be constant throughout application so want to display different view in content part of App.view. Below is my routing rule defined.
Component.js
I am not getting any error, # parameter is getting changed in URL but view is not getting called.
Kindly suggest if you have approach to design such a layout. On every Menu items we have to display different views and fragments.
Regards,
Jain.
Request clarification before answering.
Hi Jain,
I am not sure, where you might be going wrong. But, I see that you can assign multiple targets in single route.
Go through this tutorial: SAPUI5 SDK - Demo Kit
I tried to build a sample which might suit to your requirement: Plunker
Page header and tab header remains constant in the above sample, only content changes.
Regards,
Sai.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jain,
Did u initialize the router in init function of component.js?
ex:
init : function() {
this.getRouter().initialize();
}
Thanks,
Preethi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
21 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.