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.
Step 1.
Create an outbound plug in your view , O__EXIT.
Step 3.
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.
Step 4.
Go to your HANDLEI_MAIN_EXIT method in your window and fire the exit plug.
>>>>>> wd_This->Fire_O_V_Main_Exit_Plg( ).
Step 5.
Go to the window create the navigation link from the outbound plug of your "
Step 8.
Whenever you want to close the window fire the outbound plug >>>>>> wd_This->Fire_O__Exit_Plg( ) From your code.