Hello,
I created application in sap fiori app in SAP Web IDE I am try to navigating master view to details view and detail view to details2 view.
but its working master to view but its not working details to details2 view.
My code like below
Component.js file
routes: [{
pattern: "",
name: "main",
view: "Master"
}, {
name: "details",
view: "Details",
pattern: "{entity1}"
},
{
name: "details2",
view: "Details2",
pattern: "{entity2}"
}
]
master.controller.js (its working navigating to detials2 page):
onLineItemPressed: function(oEvent) {
this._oRouter.navTo("Details", {
from: "main",
entity1: oEvent.getSource().getBindingContext().getPath().substr(1),
tab: null
});
}
details.contoller.js (its not working):
navtodetail2:function(oEvent){ | ||
this.getRouter().navTo("Details2", { | ||
from: "details", | ||
entity2: oEvent.getSource().getBindingContext().getPath().substr(1), | ||
}, false); |
},
Can you anyone please help on this...