on 2016 Apr 29 3:34 AM
Dear All,
I have created an App to display as below.
when clicked on the navigation at item level, its throwing an error as below
My code is as below :
in Detail.Controller.js
onItemDetailPressed : function(oEvent) {
// Determine where we are right now
var oItem, oCtx;
oItem = oEvent.getSource();
oCtx = oItem.getBindingContext();
this.getRouter().navTo("SubDetail");
},
in SubDetail.controller.js
onInit: function() { | ||
this.router = sap.ui.core.UIComponent.getRouterFor(this); | ||
}, | ||
handleNavBack : function(){ |
this.router.myNavBack("first");
}
added the below code in component.js
added MyRouter.js as below
Can any one please guide me how to navigate to SubDetail Page. ?
Request clarification before answering.
error info??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
22 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.