cancel
Showing results for 
Search instead for 
Did you mean: 

routing problem using navTo

Balu483
Participant
3,660

hi gurus,

i have an split app in that one master page ,two detail pages are their.

master page contains the two StandardlistItems 1. employee create, 2. employee Display

detail pages

1. Simpleform contains a I/p Fiels to provide values

2. SimpleForm to Display the Employee Details which was Created at First Detail page.

i have attached the screen shorts of the targets and routes.

nd the master page view controller code as below

	onInit: function() {


		},
		onCreatepress: function(oEve) {
			var that = this;
			that.getOwnerComponent().getRouter().navTo("default");
		},
		onDisplayPress: function(oEve) {
			var that = this;
			that.getOwnerComponent().getRouter().navTo("display");
		}

when i click on Display employee in master page #change is append in URL, but the page is still remains at previous.

but hear when i refresh the page with # changed URL then it was showing correct Views.

i am not able to solve this problem please help me out friends.

Accepted Solutions (1)

Accepted Solutions (1)

gowrinath_gundu
Participant
0 Kudos

Hi Chandu

Are you maintaining config details in manifest.json. In config you need to specify router class. Please check in case you are not maintaining that

Regards

Gowr

Answers (2)

Answers (2)

junwu
Active Contributor
that.getOwnerComponent().getRouter().navTo("display",true);

give it a try.

bbalci
Contributor
0 Kudos

If there is a syntax error in target view then navigation doesn't work. In my case, to test whether navigation works or not , I put a direct text on the <content> </content> part of target view like "This is xx test page" and it was causing syntax error.