Its has been daunting problem for us to close the parent window through some actions. But this can be achieved through a work around .Please follow the steps.
Create an outbound plug in your view , O__EXIT.
Create an outbound plug in your window , O__EXIT , while creating the plug make sure that you make it as an exit plug.
In the normal course , system will not allow you create an exit plug unless and otherwise you specify the plug as an interface one.
Go to your HANDLEI_MAIN_EXIT method in your window and fire the exit plug.
>>>>>> wd_This->Fire_O_V_Main_Exit_Plg( ).
Go to the window create the navigation link from the outbound plug of your “
Whenever you want to close the window fire the outbound plug >>>>>> wd_This->Fire_O__Exit_Plg( ) From your code.