Skip to Content
avatar image
Former Member

SAPUi5 - Navigation Between XML View

Hello,

I need help in navigation between XML views without using Routing and using manifest.json.

Have 5 views, component.js, manifest.json

View1, View2, View3, View4, View5.

Rootview have declared in manifest file as View1. Sequence of step need to perform from view1 -> View2 -> View3 -> View4 ->View5. Main requirement is navigate to different view without using the routing, reason behind URL should not be changed for complete scenario.

From index.html file loading the component and from there loading the manifest file point to root view.

In this scenario how to navigate between views?

Regards,

Satya

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Dec 05, 2016 at 09:44 AM

    Hello BTC portal Team,

    If you do not want the URL to be changed, use a target without a route.

    Target be like,

    "target1":{"viewName":"View1"}

    In the event, may be a button which is used for navigation:

    this.getRouter().getTargets().display("target1");

    This will load the view "View1" as mentioned in the target without changing the URL.

    Add comment
    10|10000 characters needed characters exceeded