Skip to Content
avatar image
Former Member

For Help

Hai <b>Friends</b>...

Please give me the Solution for the Following Codes....

I have created those codes using JavaScript to Perform the an action " Close Window " which was done When execute as seperate HTMIL file But When I entered in my Project module it did not work....

So,Please give me the Solutions.....

<b>The Codes and My Procedures are</b>:

1. Go to your Webdynpro component Interface View (<Your Webdynpro project> - WebDynpro - Web Dynpro Components - <your component> - Component Interface - Interface Views - <component>InterfaceView)

create a outbound plug (CloseWindow) of type exit with parameter "Url" as String

2. Go to your view controller and in the action to close the window


String Url = WDURLGenerator.getAbsoluteWebResourceURL (wdComponentAPI.getComponent().getDeployableObjectPart(),"close.html");

wdThis.wdGet<your component>InterfaceViewController().wdFirePlugCloseWindow(Url);


catch(WDURLException WDURLe){


3. Create a html file with following content and place it in the src --> mimes --> Components --> <your component> -- > close.html



<script langauage="javascript">

function closeWindow()


var currWindow =;

currWindow.opener =;





<body onload="javascript:closeWindow()">



<b>Your Answer's not only Improve Your Points in SDN always improve Your Heights in WebDynpro.....</b>

<i><b>Thank You</b></i>

<u><b>Balajee Kannan</b></u>

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jun 13, 2007 at 04:01 AM


    place your close.html file in the src->mimes-> applications folder and try for the solution since u have placed all the control with the view controller..

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 13, 2007 at 04:52 AM


    What is the issue that you are facing ?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member


      Thanks For ur Reply...

      I have done all like mimes..and create exit plug also...

      and etc...

      Go to the view controller propertiese tab and addd the interface view as required controller==>i have done...

      And i tried Path in

      wdThis.wdGet<your component>InterfaceViewController().wdFirePlugCloseWindow(path);==>its also not worked

      But window was not closed....

      Just Expired...

      What i missed...

      Thanks & regards