Skip to Content
0

Routing Navigation Error

Oct 11, 2017 at 08:40 PM

46

avatar image

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.

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

2 Answers

Nikhil Makhija Oct 18, 2017 at 05:17 AM
0

Any feedback ?

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Mar 28 at 06:31 AM
0

Hi,

Error says Issue is in Controller.

Regards,

Gururaj

Share
10 |10000 characters needed characters left characters exceeded