cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUi5 - Navigation Between XML View

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

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.