cancel
Showing results for 
Search instead for 
Did you mean: 

Close the parent window

aayush_dubey3
Explorer
0 Kudos

Hello All,

After popping up a new window, i want to close my parent window.

[pop-up window still is visible]

Please help...

Regards,

Aayush

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Bhavik,

The solution in the above thread is for closing the popup window.Is that correct ?

Regards, Anilkumar

Former Member
0 Kudos

Hi Anilkumar,

Thanks for correcting me. It was my mistake.

Yes link i gave is for child window, not for parent window.

Regards,

Bhavik

Former Member
0 Kudos

Hi Aayush,

You can close the parent window individually only if you have created the second window as an external window (using createExternalWindow() or createNonModalExternalWindow()). To close the parent window :

1) In your Interface view, create an exit plug with a parameter <b>Url</b> of type string.

2) Add your Interface view controller to your current view's required controller. (in properties tab of your view)

3) After opening the new External window fire the outbound plug as :

wdThis.wdGet<your interface view controller>().wdFirePlug<your exit plug's name>("javascript:void(window.close())");

This will close your parent view.

Hope this helps,

Best Regards,

Nibu.

Former Member
0 Kudos

Hi Aayush,

Check following link for the same:

Regards,

Bhavik