cancel
Showing results for 
Search instead for 
Did you mean: 

SAP UI5 Routing Error

Former Member
0 Kudos

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:

this.getRouter().initialize();

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.

Alex

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member228602
Contributor
0 Kudos

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,

Veera