Skip to Content
0

Error: Control with ID App could not be found - EventProvider sap.m.routing.Target

Jan 03 at 04:39 PM

200

avatar image

Hi, I have error in Routing.

Manifest file

"rootView": "TEST_APP.view.App",
"routing": {
"config": {
"routerClass": "sap.m.routing.Router",
"viewType": "XML",
"viewPath": "TEST_APP.view",
"controlId": "App",
"controlAggregation": "pages",
"transition": "slide"
},
"routes": [{
"pattern": "",
"name": "master",
"target": "master"
}, {
"pattern": "detail/{ID}",
"name": "detail",
"target": "detail"
}],
"targets": {
"master": {
"viewName": "Master",
"viewLevel": 1
},
"detail": {
"viewName": "Detail",
"viewLevel": 2
}
}
}

App.view.xml :

<mvc:View xmlns:core="sap.ui.core"
xmlns:mvc="sap.ui.core.mvc"
xmlns="sap.m"
controllerName="TEST_APP.controller.App"
displayBlock="true"
xmlns:html="http://www.w3.org/1999/xhtml">

<App id="App">
</App>

</mvc:View>

When I try to run, I receive error message in cosole:

Control with ID App could not be found - EventProvider sap.m.routing.Target

I find error like my:

https://archive.sap.com/discussions/thread/3925346#

but solution, does not works in my example.

Thanks,

Mariusz

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers