cancel
Showing results for 
Search instead for 
Did you mean: 

Close an External Window from a Modal Window

Former Member
0 Kudos

Hi Experts,

I have the following scenario:

From my component "A", I'm calling as modal window to component "B".

Normally, component "A" and component "B" have buttons for close themself.

But, when I press a button in component "B", I need to close this component and component "A", too.

I can close component "B". More over, I can close component "A" pressing one button in the same component, but pressing the button from component "B" I'm getting error and I can't do that.

For this purpose, I'm calling the method that I use for close component "A" in the WDMODIFYVIEW of a view which contained in this component "A", but it doesn't work. I'm getting a dump, because it can't be done in this method.

Somebody knows how can I do that?

Thanks in advance!

Kind Regards,

Lucas

Accepted Solutions (1)

Accepted Solutions (1)

venkata_ramisetti
Active Contributor
0 Kudos

What do you mean by component? Is it Web Dynpro Component?

I would do this kind of requirement in the following way.

1. I will create a web dynpro component with two windows MAIN_WIN & POPUP_WIN and also two views MAIN_VIEW, POPUP_VIEW.

2. I will embedd MAIN_VIEW in MAIN_WIN and POPUP_VIEW in POPUP_WIN/.

3. I use code wizard in MAIN_VIEW to create popup for POPUP_WIN

4. I will set close_button property to ABP_FALSE so that it will now show in the popup.

5. I will add a button in the POPUP_VIEW to close this view and fire plug to my MAIN_WIN.

6. I will add logic in MAIN_VIEW to close my MAIN_WIN.

Hope this will help you.

Thanks

Venkata Ramisetti

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

refer to these examples

WDR_TEST_POPUP_01,demo_popups_01,demo_popups_03,demo_popups_02

Former Member
0 Kudos

Thanks,

I'm calling the fire plug to exit the first window on event close of the pop-up.

It works as I need.

Regards,

Lucas