Related:
What is the meaning of 'controlAggregation' in the SAPUI5 routing configuration?
Routing Configuration Documentation
My configuration:
// App.view.xml
<l:ResponsiveSplitter>
<l:PaneContainer id="idAppControl">
</l:PaneContainer>
</l:ResponsiveSplitter>
// Master/Detail.view.xml
<l:SplitPane>
<Panel headerText="some text"></Panel>
</l:SplitPane>
// manifest.json
"routing": {
"config": {
"routerClass": "sap.m.routing.Router",
"viewType": "XML",
"viewPath": "mynamespace.view",
"controlId": "idAppControl",
"bypassed": {
"target": [
"master",
"notFound"
]
},
"async": true
},
"routes": [
{
"pattern": "/:?query:",
"name": "master",
"target": [
"master"
]
},
{
"pattern": "ControlSet/{objectId}",
"name": "entity",
"target": [
"master",
"object"
]
}
],
"targets": {
"master": {
"viewName": "Master",
"viewId": "master",
"controlAggregation": "panes"
},
"object": {
"viewName": "Detail",
"viewId": "detail",
"controlAggregation": "panes"
},
"notFound": {
"viewName": "NotFound",
"viewId": "notFound",
"controlAggregation": "panes"
}
}
}
The aggregation relationship of ResponsiveSplitter is:
ResponsiveSplitter -> rootPaneContainer(Aggregations) -> PaneContainer -> panes(Aggregations) -> SplitPane
ResponsiveSplitter -> PaneContainer (one to one relationship)
PaneContainer -> SplitPane (one to many relationship)
But I get an error:
Error: "Element sap.ui.layout.SplitPane#__pane0" is not valid for aggregation "content" of Element sap.ui.core.mvc.XMLView#application-Monitor-display-component---master