Hi,
my app uses a navContainer and no SplitApp. I want to use a splitContainer within my navContainer (id: activitiesSplitContainer).
So far everything works, but I can not get both routes to match at the same time (master and detail).
in Route.prototype._routeMatched ui5 trys to find the targetControl without prefix and fails.
>>> Control with ID activitiesSplitContainer could not be found
in my view "ActivitiesSplit" I already added an ID
<SplitContainer id="activitiesSplitContainer"/>
it is instanciated with a prefix: __xmlview0--activitiesSplitContainer
What am I missing here? (openui5 1.24.5)
my desired route looks like this:
/#/activities/1
my general route config:
config: { | ||||
routerClass: myProject.Router, | ||||
viewType: sap.ui.core.mvc.ViewType.JS, | ||||
viewPath: "myProject.view", | ||||
targetAggregation: "pages", | ||||
targetControl: "navContainer", | ||||
clearTarget: false | ||||
}, |
my activities route:
{
pattern : "activities",
name : "activities",
view : "ActivitiesSplit",
viewType: sap.ui.core.mvc.ViewType.XML,
subroutes : [
{
pattern : "activities",
name : "activitiesMaster",
view : "ActivitiesMaster",
targetAggregation : "masterPages",
targetControl : "activitiesSplitContainer",
viewType: sap.ui.core.mvc.ViewType.XML,
subroutes : [
{
pattern : "activities/{transactionId}",
name : "activitiesDetails",
view : "ActivitiesDetails",
targetAggregation : "detailPages",
targetControl : "activitiesSplitContainer",
viewType: sap.ui.core.mvc.ViewType.XML,
}
]
}
]
},