cancel
Showing results for 
Search instead for 
Did you mean: 

Code for Back button

Former Member
0 Kudos

In WebDynpro Java through 'Back' button I want to go back from one view to another.How to do this?

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

If u are able to find a solution to your problem, Please award points and mark the thread as answered.

Former Member
0 Kudos

Hi,

1. Create an outplug in the view from which u want to go back.

2. Create an inplug in the view u want to navigate to.

3. create a navigation link within these two plugs.

4.Now in the onaction of your Back button write the following code.

wdThis.wdFirePlug"outplug name"();

sanyev
Active Participant
0 Kudos

Hi Anindita,

If you want to navigate back in a Webdynpro application fire the plugs to navigate back to the previous screen as mentioned in the above posts.

If you are using your webdynpro applicaiton in the portal the you can the code mentioned below to navigate back a page. Remember, this will work only in the portal.

WDPortalEventing.fire (
u201Curn:com.sapportals:navigationu201D,
u201ChistoryNavigateu201D,
u201C-1u201D);

This document explains navigation in Webdynpro in detail.

[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b5380089-0c01-0010-22ae-bd9fa40ddc62]

Regards,

Sanyev

Former Member
0 Kudos

Hi Banerjee,

Ya you can very easily do that by what above ppl told, if you dont get use the following link there is a back button (go through fully code for back button is in pg no 14) follow the same procedure in your project,

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/web-application-se...

Regards,

Sam Charles J.

Former Member
0 Kudos

Hi,

Create the plugs as mentioned above and put the following code in back action.

wdThis.wdFirePlugToReportView();

ReportView : the view u want to go back to.

Former Member
0 Kudos

Hi,

What you have to do is create a plug that connects the respective screen and then fire the plug.

Regards

Ayyapparaj

chander_kararia4
Contributor
0 Kudos

Create an Action event for the button.

Fire the plug when that action is called.

Its done.

Regards

Chander kararia