cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with back button

Former Member
0 Kudos

Hello!

I created a web dynpro application and I need to place a Back button on every page. The problem is when I go back and then go foward again, the FirePlug action doesn't work, he jump these actions.

What can be wrong ??

Thanks,

Luisa

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

You are saying that you have to go from view3 to view1 through view2 .you haven't specified how or why you are navigating through view2 to view1.if this is the situation

1)there are three views- view1,view2,view3

2)there are back buttons in view2 and view3

3)there are events for back buttons in view2 and view3

4)in view2 event you fire the plug for going back to view1

5)in view3 event you fire the plug to go back to view2

if you do like this it will go back from view3 to view2 and when the back button in view2 is pressed it goes back to view1.if you want further help do revert with details

regards

Rohit

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Luisa,

You said that you are using wdThis.firePlug1() in view2 .

Where you are using this statement in view2(I mean in which action/method ?)

You should fire the outbound plug to View1 in the "onPlugFrom3" event of the view2.

Please verify the navigation links once again.

Regards, Anilkumar

Former Member
0 Kudos

Hi Luisa,

1 .Create 2 views View1 and View2

2. Place buttons on both the views and create actions for both in view1 and view2

3.Create outboundplug from View1 to View2.(Navigation link also)

4.Create outboundplug from View2 to View1.(Navigation link also)

5. In View1 button action fire the outboundplugto View2

6. In View2 button action fire the outboundplugto View1.

Regards, Anilkumar

Former Member
0 Kudos

I already create the views and the plugs, but...

Iview1 <-> Iview2 <-> Iview3

There's a situation when I want to go back from Iview3 to Iview1, going through Iview2.

But when I go back, I use wdThis.wdFirePlugIview1 on Iview2 and it doesn't go back to Iview1, it stops on Iview2. It looks like it is jumping the FirePlug line...

It's a little bit complicated....

Thanks!

Luisa

Former Member
0 Kudos

Hi,

For creating a back button you should create an action associated with the button.You should also create the outbound plug in the second view and inbound plug in previous view .then if you write the code in the action created in second view it should work.

wdThis.wdFirePlug<name of plug>();

Do revert for comments

Regards

Rohit