cancel
Showing results for 
Search instead for 
Did you mean: 

Navigating iViews

Former Member
0 Kudos

Hi All,

I have iview with two buttons(New, Ref), when i click on New button it is displays dialog box which is haveing two options(say Start, Go). If i select Start button on conformation dialog box i should show one iview and if select Go i should shold diffent iView in the same area.

Output should be like this. The buttons New, Ref should always be shown and based on dialogbox selection i should show the related iViews bottom area of the New,Ref buttons.

For this i took view set [1,2], at [1,1] i added New,Ref buttons iView, At [2,1] i added the all output iviews. and what should i write in OnActionStart, onActionGo inorder to display the correspoingding view at [2,1]????

Accepted Solutions (1)

Accepted Solutions (1)

Sharadha1
Active Contributor
0 Kudos

Hi Nairanjan,

In onActionStart -> Fire the inbound plug of the iview which has to be displayed on [2,1] when start is clicked.

In onActionGO -> Fire the inbound plug of the iview which has to be displayed on [2,1] when GO is clicked.

Hope you have already added those iviews in the [2,1].

Regards,

Sharadha

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

Just fire the respective inbound plugs of the views in you actions.

Former Member
0 Kudos

Hi Niranjan,

How do I navigate from one view to another?

All views within a window can be connected to each other using navigation links. When the user calls a Web Dynpro application, the start view is displayed first on the screen. You can trigger a specific action - for example, by clicking a button - which triggers navigation. As a consequence, the previously displayed view disappears from the screen and a second view is displayed.

To set up navigation between two views, you must create an inbound plug for one view and an outbound plug for the other view. A plug is always a junction used for accessing or exiting a view.

Regards,

Bala

Former Member
0 Kudos

Hi,

First create two Actions for "Start" And "Go" Buttons in the properties.

1.Right Click on Button Element->Properties->

onAction:Start

onAction:Go

2.Go to implementation:

onActionStart():wdThis.wdFirePlugTo_Iview2_View1_Out();

Before writing this U need to provide the navigation link at Design Time.

Dnt forget to giv the points if ur ok with my solution.

Regards,

Lavanya.G

Former Member
0 Kudos

Hai,

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20java/dialog%20boxes%20in%20web%20dynpro%20applications.pdf">Creating dialog Boxes in Webdynpro</a>

By creating in bound and out bound plugs , you can naviagte between view.

If you want to navigate to iviews (not webdynpro views) see this

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/eb6aab90-0201-0010-3c87-e324bd45...

Regards,

Naga