Skip to Content

Routing Navigation Error

Hello,

Appreciate any pointers on below issue-

I am facing an error while navigating from one js view to another which occurs randomly and not comes every time and on page refresh it goes away. I see hash change in URL to selected target on selection of menu item but view for selected item does not display and below error shows up in console.

UI5 version : 1.38.18

navigation-error.jpg.

Router configuration is defined in Component.js file as below:

routing:
{
config:
{
"routerClass": "sap.m.routing.Router",
"viewType": "JS",
"viewPath": "Datawolf.view",
"controlId": "idApp", [This is App ID]
"controlAggregation": "pages",
clearTarget: false
}, // end of config 
routes: [
{
"pattern": "",
"name": "Home",
"target": "Home"
},
{
"pattern": "DryEnd",
"name": "DryEnd",
"target": "DryEnd"
},
...

targets:
				{
					"Home":
					{
						"viewName": "Home",
						"viewType": "JS"
					},
					"DryEnd":
					{
						"viewName": "DryEnd",
						"viewType": "JS",
						"viewPath": "Datawolf.view.DryEnd",
						"viewLevel": 2
					},

I navigate via :

var oRouter = sap.ui.core.UIComponent.getRouterFor(this);

oRouter.navTo(viewName);

Thanks.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Oct 18, 2017 at 05:17 AM

    Any feedback ?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 28 at 06:31 AM

    Hi,

    Error says Issue is in Controller.

    Regards,

    Gururaj

    Add comment
    10|10000 characters needed characters exceeded