I'm Trying navigate from Master view to Multiple detail views. But I don't know how do it in component.js, all the samples are simple detail views. I can Navigate to all views but I can't get the binding from odata, only the last detail view in routing work's correctly.
component.js code:
routing : {
config : {
routerClass : ZPPS.MyRouter,
viewType : "XML",
viewPath : "ZPPS.view",
targetAggregation : "detailPages",
clearTarget : false
},
routes : [
{
pattern : "",
name : "main",
view : "Master",
targetAggregation : "masterPages",
targetControl : "idAppControl",
subroutes : [
{
pattern : "{entity}/:tab:",
name : "detail",
view : "Detail"
}
]
},
{
pattern : "",
name : "main",
view : "Master",
targetAggregation : "masterPages",
targetControl : "idAppControl",
subroutes : [
{
pattern : "{entity}/:tab:",
name : "placeDetail",
view : "PlaceDetail"
}
]
},
{
pattern : "",
name : "main",
view : "Master",
targetAggregation : "masterPages",
targetControl : "idAppControl",
subroutes : [
{
pattern : "{entity}/:tab:",
name : "vehicleDetail",
view : "VehicleDetail"
}
]
},
{
name : "catchallMaster",
view : "Master",
targetAggregation : "masterPages",
targetControl : "idAppControl",
subroutes : [
{
pattern : ":all*:",
name : "catchallDetail",
view : "NotFound",
transition : "show"
}
]
}
]
}