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)

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…

routing problem using navTo

Very Helpfull

User Rating: Be the first one !
Reviewer Asked on May 26, 2017 in SAP PORTAL.
Add Comment
2 Answer(s)

    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 Comment
      that.getOwnerComponent().getRouter().navTo("display",true);

      give it a try.

      Add Comment

      Your Answer

      By posting your answer, you agree to the privacy policy and terms of service.