cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to open popup window in another popup window

Former Member
0 Kudos

Hi All,

Please let me know whether it is possible to open the popup window in another popup window.

Currently in the first popup window, on click of hyperlink then it should open another popup window to show the list of associated values in table UI.

Is it possible to open popup window in another popup window?

Appreciate your help if any come had solution for this or any sample code if you had already achieved the solution if possible.

Thanks

sudhan

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Sudhan,

You can achieve your requirement by

designing each popup as an individual view and assigning it to a window

keeping a button or a link to action or any such button calling the corresponding popup once the button is clicked,

In the Action use the wizard to generate the auto code

-->Wizard

-->General Tab

-->Select Generate Popup radio button

-->F4 on Component Use and select current component name

-->Select the required window which you want to show once this action is triggered

Similarly do for other popups

and

similarly to navigate back

or

once the popup is closed you will be redirected to previous popup

Refer the the standard Multi POPUP example

WDR_TEST_POPUPS_RT

Expand Popup Tests: Runtime TRAY

click on link to action POPUP in POPUP

Points Please if its helpful

Regards

Subhash

former_member184635
Participant
0 Kudos

Let me first understand the issue:

You have a MAIN window on which a line ( or button) to open a pop-up window (pupw1) is

opened. Again on this pop-up window(pupw1) a link is provided and opens uo a new pop-up window (pupw2). again on pupw2 a link is provided it opens up pupw3 and like wise....

The above screnerio is possible and it is just a pop-up window call.

But if you are trying to click on MAIN again after opening a pop-upwindow(pupw1) to open a pupw2, I think it is not possible......

Regards,

Dadarao.

former_member184958
Active Participant
0 Kudos

Hi Dainer,

It is same like an normal popup, for this create three view and three window and include the each view into the corresponding window then create the button for require window inside that call the popup window using the code wizard then it will work. If you are struggle tell me i will send you the document.

your component like below,

This popup1 button call the w_popup1 as your frist popup.

using the popup2 button call the w_popup2 as your second popup.

Regards,

John

j_schnatz
Explorer
0 Kudos

Good day Sudhan,

you sure can open a second popup. For a quick solution try the following piece of code:

  DATA lo_api_component       TYPE REF TO if_wd_component.

  DATA lo_window_manager      TYPE REF TO if_wd_window_manager. "#EC NEEDED

      lo_api_component  = wd_comp_controller->wd_get_api( ).

      lo_window_manager = lo_api_component->get_window_manager( ).

      cl_wdr_runtime_services=>display_view_in_popup(

        EXPORTING

          component             = lo_api_component

          target_view_name      = 'YOUR_SECOND_POPUP'

          close_button          = abap_true

          button_kind           = if_wd_window=>co_buttons_none

          window_title          = lv_window_title

        IMPORTING

        popup_window          = your_window ).

Good luck,

Johannes

amy_king
Active Contributor
0 Kudos

Hi Sudan,

Take a look at demo web dynpro component WDR_TEST_POPUP_01 and run its application. It contains many examples of popup dialogs. You may be interested in the examples having "multiple popups" in the name, especially Cases with Open > Multiple Popups One After Another.

Cheers,

Amy

Former Member
0 Kudos

Hi Amy,

Thanks for your reply.

But our requirement is different as mentioned below, please get back to me if there is any solution.

1. The requirement is to open multiple popup windows on the same window name.

2.  While opening the first popup we are calling the standard window name W_EH_LIST, that's fine.

3.  but when we click on some hyperlink in the first popup then it should call same window name (W_EH_LIST). It seems that's not possible as already we have opened instance of the same window in the first popup, so it wont be allowing to open second popup on the same window instance.

4. but our requirement is, the first popup window should be opened while opening second popup window. but windows should be opened on the same window instance name.

Please get back to me if you have any solution on this, Appreciate your help.

Thanks & Regards

Sunil