How to close the browser from webdynpro application

Hi All,
I need  to implement the closing the browser where the webdynpro  application running by click on some button in that application.
Can any body tell me how to implement that.
Regards
Vijay

Hi,
I resolved as follows(WebDynpro7.3) :
1.- Create a plug in the "Window" with the name "Exit" and parameter "closeWindow" the type Boolean, after edit it and put type Exit.
2.-Repeat the same but in the "Interface".
3.-Place the following code in the action:
  IWDWindowController iwdWindowController =wdControllerAPI.getWindowController();
  IWDWindowInfo windowInfo=iwdWindowController.getWindowInfo();
  IWDOutboundPlugInfo  iwdOutboundPlugInfo=windowInfo.findInOutboundPlugs("Exit");
  iwdWindowController.firePlug(iwdOutboundPlugInfo, new HashMap(){{put("closeWindow",true);}});
regards.
JCARMONA

Similar Messages

  • How to close the browser from an Applet?

    Hi,
    I've written one applet, with 2 buttons (Continue & Exit). On click of Continue button, it will open another web page. On click of Exit button, the browser should be closed.
    I'm not able to close the browser from the applet.
    Can any body help me.
    Rgds
    Santosh

    In my experience, calling Javascript from applets is flaky at best. However, I have gotten it to work in some cases. The following code should get you started:
    netscape.javascript.JSObject win = netscape.javascript.JSObject.getWindow(applet);
    Now you can call different methods on the win object (look into Javascript documentation for details).
    It also depends on if you are using the Java Plug-in or the JVM built into the web browser. You probably need set MAYSCRIPT=TRUE in your HTML. Look into the Java Plug-in documentation for details...

  • How to stop the Browser from caching my web pages

    Hi There
    Can anyone tell how to stop the browser from caching my jsp pages
    I am using
    <%response.setHeader("Cache-Control","no-cache");
    response.setHeader("Pragma","no-cache");
    response.setDateHeader ("Expires", 0);
    %>
    but this does not work anduser is able to go back to the previous page
    which i dont want and i want the browser to display the message the page has expired
    Help appreciated
    Thanks
    Mumtaz

    response.setHeader("Cache-Control", "no-cache");
    response.setHeader("Pragma", "no-cache");
    response.setDateHeader("max-age", 0);
    response.setDateHeader("Expires", 0);
    I have cut paste the code from my jsp which is working. There is one additional line. I do not know if that is the cause but there is no harm in trying that out.
    Srinivasan Ranganathan

  • How to capture the parameter in webdynpro application?

    Hi ,
    We have a requirement like this :
    the scenario is :
    user will get a mail to  inbox(here mail is coming from SAP Workflow) saying that :"proposal is waiting for your approval".for details please click on the below link:
    once user clicks on the link it has to open up the webdynpro application and has to display the details of the particular proposal no.
    how to pass the proposal no to the webdynpro application URL and how to capture the proposalno in webdynpro java?
    Thanks in advance.
    Regards,
    Pavani

    From the workflow when you create the link, also add the proposal number as an url parameter.
    For example if the url for requesting WD application is <WD_URL>, then URL with parameter would be
    <WD_URL>?PROPOSAL_NO=<actual_proposal_number>
    In the webdynpro, you can access this parameter with the following piece of code(ideally in wdDoInit of component controller).
    String proposalNo = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("PROPOSAL_NO");
    Regards
    kk..

  • How to close the browser on button click?

    Hi,
    On a HTML page, I have a button labeled as "Close". When user click the button, I want to close the browser. I am using Apex 4 with 10g.
    I created the following process which I call on pressing the close button:
    BEGIN
    htp.p('<body>');
    htp.p('<script type="text/javascript">');
    --htp.p('window.opener.doSubmit();');
    htp.p('window.close();');
    htp.p('</script>');
    htp.p('</body>');
    END;But it shows the below in the browser instead of closing it.
    Location: f?p=17638:9:3591448756041585::NO
    Any wayout?
    Thx

    For popup windows I use button code / javascript such as this.
    The self function refere to the correct window, while window.close my be connected to the wrong (parent) window.
    input type="button" value="Cancel" onclick="self.close();"  id="CANCEL"Edited by: Sven W. on May 26, 2011 2:46 PM

  • How to prevent the browser from executing the old version of js file...

    Dear sirs,
    I have a JSP page that includes a javascript file as given below,
    <script type="text/javascript" src="../scripts/validation.js"></script>
    Some times modification is needed in this included script file. After the modification, when I load the JSP page in the browser,
    the old copy of the script file, which was not modified is getting executed. by the browser.
    I would like to know whether any options are availabe in javascript to prevent the browser from executing the old copy that has already downloaded to the temperary interner folder(from caching)and use the modified version available with the new response...
    Thank you,
    Sudheesh K S

    Dear sir,
    Thakyou very much for your comment.
    I tried this, By doing thisThe .html page of the response will be deleted. But the javascript file will not be removed. It will be remail there.
    This lead me to the idea to think about javascript. I heard that some commands are there in javascript like cache ="NO" but not sure. I searched in the net but no favourable result found...
    Thank you,
    Sudheesh....

  • How to close current window  of webdynpro application using webdynpro java

    Hi All,
    u201CTo close the current  window  of webdynpro application"
    if i using exit plug its giving the following error in portal runtime.
    u201Ccom.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Exit-Plug must no be triggered with an URL when running in portal. Use portal navigation instead to navigate to another application! u201C .
    could you send me the  process how to use  portal navigation for the above scenariou2026u2026instead of exitplug.
    Thanks& Regards,
    Srinivas.

    Hi,
    Follow the steps below:
    1. Create a new Window and embed a View which needs to be opened from the main view.
    2. Create a context attribute of type IWDWindow (Java Native Type Option)
    3. Write the following code in the controller for opening the new window:
    IWDWindowInfo windowInfo = (IWDWindowInfo)  
                                                     wdComponentAPI.getComponentInfo().findInWindows("<windowname>");
    IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
    wdContext.currentContextElement().set<contextattributename>(window);
    window.show();
    4. In the new window, create a contextattribute and bind it to the attribute created in controller and on action of the close button write the following code:
    IWDWindow window = wdContext.currentContextElement().get<attributename>();
    window.destroyInstance();
    Hope this helps you.
    Regards,
    Poojith MV

  • How to call a servlet from Webdynpro application

    Hi All,
        I am new to SAP . I have requirement to call a SERVLET which is on a different application server from my webdynpro application , the servlet will return a file .. i need to display that file to the user .. can some one tell me how this can be done .. If possibel please provide some sample code.
    Regards,
    Tarun.

    Hi
    Check this
    1. How to access Servlet information from a webdynpro application ?
    Regards
    Abhijith YS

  • How to pass the document from Webdynpro to SAP R/3?

    HI Gurus,
    I have a requirement to offer a Document uploading option through Java webdynpro screen.
    I have referred the below link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71
    which has the steps till uploading the document into Webdynpro
    Now my requirement is to pass the document into SAP R/3? is there any RFC for that?
    Thanks in Advance,
    Dharani

    Hi,
    The documents are uploaded from WDJ to Portal Server  / Portal Content Directory / Some Shared Drive .
    So that they can also be programmed such a way that they can be fetched whenever needed .
    The requirement is interesting but before you take step think how far it is feasible .
    Regards,
    Srini

  • How to invoke a browser from an Application button  with a specified URL

    Hi
    I am trying to invoke a browser by clicking a button on my Application .I want the browser to come up with the URL I decide before i click on the button.
    To invoke the browser i am using the Runtime class. and then using the Runtime.exec() method .
    But thats only half the solution.(Loading a specific URL decided at runtime is a problem)
    Is there a way out ??
    Thanks
    Pranav

    Hi there,
    You have already reach to solution, just specify parameter as your URL to iexplore.exe in Runtime.exec() command.
    Like if you running from command prompt , it will look like something below
    C:>directory where iexplore is>iexplore java.sun.com
    for java Runtime.exec("iexplore.exe","java.sun.com");
    hope it will help you out,
    Dhwanit Shah

  • How to call Function Module from webdynpro application ,up on click url in

    Hi Experts,
    I need your help for the following scenario.
    In my WebDynpro application , I am displaying the sales orders in a table.
    one of the column in table  i.e. sales order number is displayed with hyper link, up on click the sales order number column, i have to pass the  po number to the a remotefunction with as one parameter and  enjoy = 'x' as another parameter  that should call me23n transaction and the transaction screen should be displayed in the webdynpro application with po details.
    Thanks In Advance.
    your help is rewarded.
    Best Regards.
    Rao.

    Hi Rao,
              1.Create binding to view to Controller.
              2.Create table->Add column->Add table cell Editor(select LinkToAction UI Element in options).
              3. Bind the property <i>text ->sales order number</i> (Output/<model node>)
              4. Create an Event <salesOrder>
                                       // do null check
                                       // set your input parameters
                                       // input sales order number = current output sales order number
                                       // enjoy="x"
                                       // call controller's method() that executes RFC
              5. Bind this event    LinkToAction  property action-> <salesOrder>  
    To execute RFC, the code is available in sample tutorials.
    Hope this helps
    regards,
    Siva

  • How to call URL in background or close the browser from ABAP

    Requirement changed.. no longer an issue. Thanks.
    Message was edited by:
            Atul Devasthali

    Hi He,
    This question has been asked (and answered) many times in this forum.
    Please do a search for words like "InitialContext", "RMIInitialContextFactory",
    and "weblogic". You will find lots of information.
    Also, the following web page has links to documentation, "how-tos"
    and sample code:
    http://otn.oracle.com/tech/java/oc4j/content.html
    Have you looked at it?
    Good Luck,
    Avi.

  • How to call report program from WebDynpro Application

    HI
    How call  report program in WDA.
    1. To extract the xml files and store the data in to data base table, program name is "zprogram_application".
          When run the se38 it's working fine and save the data in database.
    2. When i click "SUBMIT" button the web dynpro application automatically run the Report program "zprogram_application" and save the data into data base table. This is my requirement please give me suggestions.
    3. I want run the report program in web dynpro application.
    Thank you
    V.VENKATESH

    From within the WDA Event handler you can call the program using SUBMIT ... AND RETURN.  You might have to be careful with what the program does.  It must run as though it is in the background.  There is no connection to the client machine - so no SAPGUI calls.  You might also consider the addition VIA JOB job NUMBER n...  to the SUBMIT command.  That will allow you to start the submitted program as a background job.  Your WDA can then continue processing as the submitted job runs in parallel.

  • How can we lauch browser from my application?

    hello all,
    i tried
    Runtime.getRuntime().exec("cmd /c start http://www.sun.com");
    to launch my default browser (IE) on NT4 system,
    but nothing happened...
    when i tried Runtime.getRuntime().exec("iexplore.exe")
    i got
    java.io.IOException: CreateProcess: iexplore.exe error=2
    at java.lang.Win32Process.create(Native Method)
    at java.lang.Win32Process.<init>(Compiled Code)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Compiled Code)
    at java.lang.Runtime.exec(Compiled Code)
    at java.lang.Runtime.exec(Runtime.java:152)
    at Launch.main(Launch.java:6)
    i tried Runtime.getRuntime().exec("start http://www.sun.com") eventhough it is meant for win95..
    thanks in advance...
    Regards
    Sojan

    hi,
    when i tried as
    Runtime.getRuntime().exec("start http://www.yahoo.com");
    [ i heard that this is for win95 ]
    i got the following exception.. i'm using WinNT-4 and IE5.0 ,
    java.io.IOException: CreateProcess: start http://www.yahoo.com error=2
    at java.lang.Win32Process.create(Native Method)
    at java.lang.Win32Process.<init>(Win32Process.java:64)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Runtime.java:272)
    at java.lang.Runtime.exec(Runtime.java:195)
    at java.lang.Runtime.exec(Runtime.java:152)
    at LaunchBrowser.main(LaunchBrowser.java:6)
    can anyone suggest a method which works on NT?

  • How to bring the data from application server to presentation server

    hi,
    i have one problem,i have written the program which will open the files in the application server when we run the program in the background(sm37),the same data from application server i want to bring into presentation server in the format of (.csv),how to bring the data from application to presentation server can any body help me on this  topic.folowing is the code .
    *& Report  ZPFA_HIER_LOAD
    REPORT  ZFPA_HIER_LOAD.
    *---- Declaration of Oracle connectioN
    DATA con_name LIKE dbcon-con_name VALUE 'COMSHARE'.
    DATA: MFL1(9),MFL2(5),MFL3(9),MFL4(2),MFL5(8) TYPE c.
    DATA : mfilename type string.
    data: begin of matab1 occurs 0,
          MFL1(9) TYPE C,
          MFL2(5) TYPE C,
          MFL3(9) TYPE C,
          MFL4(2) TYPE C,
          MFL5(8) TYPE C  ,
         end of matab1 .
    data: setid(8) type c.
    data: begin of source occurs 0,
          setid(8) type c,
          end of source.
    *PARAMETERS : p_pfile LIKE filename-FILEEXTERN.
    *PARAMETERS : m_bsenty(8). " type c obligatory.
    *mfilename = P_PFILE.
    EXEC SQL.
      SET CONNECTION :con_name
    ENDEXEC.
    EXEC SQL.
      CONNECT TO :con_name
    ENDEXEC.
    EXEC SQL PERFORMING get_source.
      SELECT set_id FROM UNIT_SET INTO
      :setid
      ORDER BY SET_ID
    ENDEXEC.
    start-of-selection.
    LOOP AT SOURCE.
      REFRESH matab1. CLEAR matab1.
      EXEC SQL PERFORMING evaluate.
    SELECT TO_CHAR(MEM_ID),TRIM(TO_CHAR(MEM_PID)) FROM UNIT_TREE INTO :MFL1,
    :MFL5
    where set_id = :SOURCE-SETID ORDER BY MEM_ID
      ENDEXEC.
      if SOURCE-SETID = '80000000'.
       mfilename = '/tmp/aesorg'.
      elseif SOURCE-SETID = '80000006'.
       mfilename = '/tmp/Consolidation_Manager'.
      elseif SOURCE-SETID = '80000010'.
       mfilename = '/tmp/10org'.
      elseif SOURCE-SETID = '80000012'.
       mfilename = '/tmp/20org'.
      elseif SOURCE-SETID = '80000018'.
       mfilename = '/tmp/30org'.
      elseif SOURCE-SETID = '80000025'.
       mfilename = '/tmp/40org'.
      Endif.
      mfilename = '/usr/test.dat'.
    ************************This was i tried***********************
      open dataset mfilename for output in text mode encoding default." IN
    *TEXT MODE ENCODING DEFAULT.
    if sy-subrc <> 0.
    exit.
    endif.
    close dataset mfilename.
    CALL FUNCTION 'GUI_DOWNLOAD'
       EXPORTING
         FILENAME         = MFILENAME
         FILETYPE         = 'ASC'
       TABLES
         data_tab         = matab1
       EXCEPTIONS
         file_write_error = 1
         invalid_type     = 2
         no_authority     = 3
         unknown_error    = 4
         OTHERS           = 10.
    loop at matab1 .
    transfer matab1 to mfilename.
    endloop.
      clear matab1.
    ENDLOOP.
    loop at matab1 .
    transfer matab1 to mfilename.
    endloop.
    close dataset mfilename.
         MFL5 = '0'.
       CLEAR MFL5.
    FORM evaluate.
      if MFL5 = -1.
        MFL5 = ''.
      ENDIF.
      concatenate MFL1 ','   into MFL1.
      concatenate MFL1 ','   into MFL3.
      matab1-MFL1 = MFL1.
      matab1-MFL2 = 'ZBUE,'.
      matab1-MFL3 = MFL3.
      matab1-MFL4 = ' ,'.
      matab1-MFL5 = MFL5.
      append matab1 .
      CLEAR MFL1.
      CLEAR MFL2.
      CLEAR MFL3.
      CLEAR MFL4.
      CLEAR MFL5.
    ENDFORM.
                     "evaluate
    *&      Form  GET_SOURCE
          text
    FORM GET_SOURCE.
      source-setid = setid.
      append source.
      clear source.
    ENDFORM.                    "GET_SOURCE

    Hi Rammohan,
    You cannot use OPEN DATASET to transfer data from application server to presentation server.
    You can do the following :
    <b>Do 1st point in BACKGROUND</b>
    1. Read the data file from application server into an internal table using OPEN DATASET
    <b>Do 2nd point in Foreground</b>
    2. Once you get the data into an internal table, then use FM GUI_DOWNLOAD to download it on presentation server
    You cannot use the above 2 point together in Background because its not possible. Hence you need program it partially in background and partially in foreground.
    Best regards,
    Prashant

Maybe you are looking for

  • Can't see forms anymore in adobe reader for iPad.

    Until the update I was able to read this form. Can anyone see why I can't any more? uwo.ca/fhs/kin/ug/programs/guides/honors_bsc.pdf

  • Sort by title

    I have google this question, but mostly found old questions and answers. Sure in 2014 you can sort photos by title? I am doing a 365 challenge, and am naming my photos as Day 001 - Some Title, Day 002 - Other Title, etc. I keep the photos on 500px, w

  • Dual Exchange Rate Maintenance

    Dear All, I have one issue on exchange rate . our client do import and export. So custom department fix the exchange rate at the start of  every month which is applicable for the full month. But in case of receipt or payment  in bank we have to consi

  • Alarm Clock 2 not working, any suggestions? Help!

    Hi everyone, Alarm Clock 2 didn't wake me up this morning, I tested it, and it seems like the clock on the computer is going to sleep when the computer goes to sleep! Are there any free alarm clock programs out there that work with mountain lion?

  • Using the Canoscan LiDE210 how do I get a multipage PDF file to OCR?

    Purchased a LiDE 210 to replace my LiDE 20 (- which worked well for 9 years) - How can I enable the OCR function when scanning a multi-page document into PDF format and want to transfer it to WORD DOCX format, without having to edit and correct manua