cancel
Showing results for 
Search instead for 
Did you mean: 

View Navigation (Back and Next)

Former Member
0 Kudos

Hi Experts,

Are there any alternatives to using plugs for view navigation in Web Dynpro?

We have an application which consist of a number of views, each with a 'back' and 'next' button that loads another view. Problem is - depending on choices made on the views, the next and back buttons need to navigate to different views. This means that we have to create separate plugs and links for each possible destination. Even worse, we have to keep track of which view was loaded before the current view, as the back navigation differs.

If I can maybe illustrate our problem with this example:


View1:
---------
InPlug1(Back from View3 after navigating to it from here)
OutPlug1 (Next button with option A)
OutPlug2 (Next button with option B)

View2:
---------
InPlug1 (Next from View1 with option A)
InPlug2 (Back from View3 after navigating to it from here)
Outplug1 (Next button)

View3:
---------
InPlug1 (Next from View1 with option B)
InPlug2 (Next from View2)
Outplug1 (Back after navigating from View1)
Outplug2 (Back after navigating from View2)

For this simple setup we need 10 plugs and we need to keep track of which View navigated to View3. Is there a simpler way or maybe something we could do different somehow?

Accepted Solutions (1)

Accepted Solutions (1)

vijayakhanna_raman
Active Contributor
0 Kudos

Hi,

To navigate betten views in webdynpro, the only option is fire plugs.

Even if u put the views in viewset and want to show one view at a time, then also fire plug is needed.

Regards,

Vijai

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks, while we couldn't find a way to do exactly what we wanted, we managed to make the code considerably more maintainable by using a 'proxy' as such.

Former Member
0 Kudos

Hi,

Please go through this tutorial.

It explains how you can pass parameter inside the fire plug and how you can navigate to a view of your choice from a list of views.

It does not directly address your problem.But then this is possible solution with some intelligent coding.

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#4">Navigation using Interface view</a>