cancel
Showing results for 
Search instead for 
Did you mean: 

How to close popup window

Former Member
0 Kudos

Hi all,

does any one know how to close a popup window?

That is a external window and not modal.

I want to close that window by clicking a button in it.

Best Regards,

Austin

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Austin,

If your question is related to WD Java, then refer <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/55/084640c0e56913e10000000a1550b0/frameset.htm">Closing a pop up</a>.

~ Bala

Former Member
0 Kudos

Hi,

create a method in the Component controller and create one eventHandler. then use the code in Component controller method, wdThis.wdFireEvent<Eventname>;

create an action in the parent view and also create an eventHandler, while creating this event give the Component controler name as Event source and give the Event name which is corresponding to the Method as Subscribed event.

in implementation part of this eventHandler put the following code.

IWDWindow window=(IWDWindow)wdContext.current<WindowInstance>Element().getWindowInstance();

window.destroy();

In the action of the button(in popup), call the method() of Component controller which is built to close the window.

Former Member
0 Kudos

Hi,

see

(also might be of interest)

Regards, Heidi

Message was edited by: Heidi von Geisau