on 09-15-2014 7:49 AM
Hello,
I am having problem in navigating from Master to Detail.
Scenaio:
Master1 ---> Master2 ---> Detail
Problem and Requirement
I navigate to Master2 from Master1 properly.
When I click list item of Master2 and navigate to Detail, my master page automatically navigates to Master1.
There is no error or such. Detail page gets loaded perfectly but navigation from Master2 ---> Master1 is not required which is happening automatically.
I am using this.oRouter.navTo() method.
Any idea how to deal with this?
Kind regards,
Rauf
can you show how you've defined the routes ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sakthivel,
Thanks for showing interest in my problem.
See routes:
masterPageRoutes:{
"master":{
pattern:"",
view:"master"
},
"subMaster":{
pattern:"subMaster",
view:"master2"
},
"volumeMaster":{
pattern:"subVolumeMaster",
view:"volumeMaster"
},
"amortizationView":{
pattern:"subamortizationView",
view:"amortizationView"
}
},
detailPageRoutes:{
"empty":{
pattern:"",
view:"empty"
},
"detail":{
pattern:"detail",
view:"detail"
},
"subDetail":{
pattern:"subDetail",
view:"detail"
}
},
and I am calling detail page like following:
this.oRouter.navTo("subDetail",{
});
Regards,
Rauf
Using scaffolding ? if yes, check the documentation which says scaffolding supports only one master view per app.
JsDoc Report - SAP UI development Toolkit for HTML5 - API Reference - sap.ca.scfld.md.ComponentBase
Hi Sakthivel,
We solved it . And you guessed right, using scaffolding and it was related to routes only.
Modified routes as follows:
masterPageRoutes:{
"master":{
pattern:"",
view:"master",
subroutes: [
{
pattern: "master/{contextPath}/detail",
name: "detail3",
view: "detail"
}
]
},
"master2" : {
pattern : "master2/{contextPath}",
view : "master2",
subroutes: [
{
pattern: "master2/{contextPath}/detail",
name: "detail2",
view: "detail"
}
]
}
},
Referred DEMO APP and following URL:
SAPUI5 SDK - Demo Kit
Thanks for your kind attention to my problem. Keep it up
Regards,
Rauf
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.