Skip to Content
1
Mar 04, 2017 at 06:40 AM

routing problem using navTo

3148 Views Last edit Sep 05, 2017 at 05:09 PM 3 rev

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.

Attachments

targets.png (45.6 kB)
routes.png (28.1 kB)
default-route.png (48.0 kB)
display-route.png (52.0 kB)