Skip to Content

routing problem using navTo

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.

targets.png (45.6 kB)
routes.png (28.1 kB)
default-route.png (48.0 kB)
display-route.png (52.0 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Mar 05, 2017 at 06:45 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 04, 2017 at 10:28 PM
    that.getOwnerComponent().getRouter().navTo("display",true);

    give it a try.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.