first at all, I´m aware that there were similiar asked questions, but none of the answers could solve my problem.
Short look into my code:
My Component.js looks like this
routes: [
{
pattern: "", //home page
name: util.Constants.Tile,
view: util.Constants.Tile,
viewId: util.Constants.Tile,
targetAggregation: "pages"
//targetControl: "idAppControl"
},
{
pattern: "firstExample",
name: util.Constants.FirstExample,
view: util.Constants.FirstExample,
viewId: util.Constants.FirstExample,
targetAggregation: "pages",
targetControl : "idAppControl",
subroutes : [
{
pattern: "firstExample",
name: util.Constants.ExampleMaster,
view: util.Constants.ExampleMaster,
targetAggregation: "masterPages",
targetControl: "idSplitContainerControl",
},
{
pattern: "firstExample/:typeMaster:",
name: util.Constants.ExampleSecondMaster,
view: util.Constants.ExampleSecondMaster,
targetAggregation: "masterPages",
targetControl: "idSplitContainerControl",
subroutes : [
{
pattern : "firstExample/:typeDetail:",
name : util.Constants.ExampleDetail,
view : util.Constants.ExampleDetail,
targetAggregation : "detailPages"
}
]
}
]
},
Short explanation: It´s a page with a normal app view (no master view) and a following SplitContainer with two master and one detail view. Whenever I want to call the detail view
onSelect : function (e) {
var routeTo = e.getSource().getTitle();
this.router.navTo(util.Constants.ExampleDetail, { typeDetail : routeTo } );
},
it says
2015-03-30 14:50:06 Control with ID idAppControl could not be found - sap-ui-core-dbg.js:15213
Any idea? Thanks for your help in advance!
Links to the similiar topics:
- https://stackoverflow.com/questions/29003071/ui5-cant-find-a-control-via-its-id#=
- SAPUI5 routing throws error "Control (ID of an App control) does not has an aggregation called pages"