Skip to Content

Navigation between windows in WD Java

Hello Experts,

I am having the following Window structure in my web dynpro Java DC:

Window1:

     View1

     View2

Window2:

     View1

I am having only 1 component in my DC. So both windows are part of a single component.

From Window1's View1, I am launching Window2's View1 as a popup window. Now based on an action in View1 of Window2, I want to navigate to View2 of Window1.

I am not getting how to achieve this. Can someone please guide me on how to do this?

Thanks,

Saurabh

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    May 11, 2013 at 08:50 AM

    Hi,

    Here is what I have done so far to achieve this:

    I will refer to window1's view1 as W1V1, window1's view2 as W1V2, window1's view3 as W1V3 and window2's view1 as W2V1.

    First on a button click in W1V1, I am navigating to W1V2 using view navigation plugs. Then on an action in W1V2 i am launching W2V1 as a popup window. Here I am able to see W2V1 as a popup with W1V2 in the background.

    Now on an action in W2V1 I wish to close the popup window and show W1V3. I am able to close the popup window.

    For this on a button click action in W2V1 I am calling a component controller method. Within this comp controller method, I am firing an Event which I have created in the comp controller using

         wdThis.wdFireEvent<EventName>();

    Now in W1V1 I am creating an event handler method which is subscribed to the comp controller event. I am able to reach this event handler in W1V1. From here I am now firing an outbound plug to W1V3, but this navigation is not happening.

    I am aware that this explanation may look a bit too confusing, but I would really appreciate if anybody can guide me as to why a simple view navigation is not working for me.

    Regards,

    Saurabh

    Add comment
    10|10000 characters needed characters exceeded

  • May 10, 2013 at 11:54 AM

    only the pop up will navigate to view2 of window1. or the whole window will navigate to view2 of window1?

    Add comment
    10|10000 characters needed characters exceeded