Skip to Content

SAP UI5 Routing Error

Mar 03, 2017 at 11:59 AM


avatar image
Former Member

Hello all,

I´m an abap developer and new to SAP UI5.

In my app I try to use routing to navigate from XML View to another, but unfortunately that is not working. What I've done:

As you can see, that is my router configuration in component.js. In the file tree you can see two views (View1 and View2) and their viewcontrollers.

In the finit function of the component.js I initialize the router with:


But when I start my App, there is only some blank screen and errors in the Chrome debugger:

I am quite sure there is something wrong in my router configuration, but I can`t figure it out...

Any ideas someone?

Thanks in advance.


ui5-routing.png (54.3 kB)
routing-error.png (37.0 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Veeraraghavan Narasimhan
Mar 03, 2017 at 02:00 PM

Hello Alex,

There was a similar question posted couple of days back . Answer . The issue i can see is the app structure you have . In the standard template program there is a Component, Rootview and other views. The root view has a control sap.m.App which has Id "app" which is defined as target control in manifest and it acts as parent container for all your views .

Can you adjust your application accordingly to fix the issue.

Thanks and Regards,


10 |10000 characters needed characters left characters exceeded