Skip to Content
0

SAPUi5 - Navigation Between XML View

Nov 23, 2016 at 04:19 PM

53

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Manne Prasad Dec 05, 2016 at 09:44 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded