Close Browser Window with view button element when view embedded into fpm

Hi,
is it possible to build a button into a component view which is embedded into a fpm to close the browser window?
tried to build a exit plug within the view/window of my component. But nothing happened. the window stays open
Maybe is it an option to fire the fpm close plug of the fpm from my component view embedded into the fpm?
Hope you can help me.
Using the close button of the fpm is not an option because the window should automaticaly close when clicking on a button embedded into my component view.
Kind Regards
Rico

Hello,
one more question.
Is it possible to change the method. so that the fpm opens within the same browser window instead of a new one?
Maybe is there a solution with the portal?
This is the Method to create a new Shopping cart. This opens a new browser window.
method /SAPSRM/IF_CLL_DOM_SCW_FIN~CREATE_NEW_SHOPPING_CART.
data:
       LV_TASKCONTAINER      TYPE REF TO /sapsrm/if_cll_task_container,
       ls_obn_components     type /sapsrm/s_wd_ui_obn,
       lo_navigation_service TYPE REF TO /SAPSRM/IF_CH_WD_NAVI_SERV.
try.
  LV_TASKCONTAINER = mo_parent_bo_mapper->get_task_container( ).
  CALL METHOD lv_taskcontainer->GET_NAVIGATION_SERVICE
    RECEIVING
      RO_NAVIGATION_SERVICE = lo_navigation_service.
  ls_obn_components-obn_system = 'SAP_SRM'.
  ls_obn_components-object_type = 'sc'.
  ls_obn_components-operation = 'shop'.
  CALL METHOD LO_NAVIGATION_SERVICE->LAUNCH_TARGET
    EXPORTING
      IV_TARGET_TYPE          = /sapsrm/if_ch_wd_navi_serv_c=>gc_target_type-obn
      IS_OBN_COMPONENTS       = ls_obn_components
      IV_OBN_PARAM_CLASS      = /sapsrm/if_ch_wd_navi_serv_c=>gc_param_class-taskcontainer
      IV_OBN_PARAM_METHOD     = 'GET_OBN_PARAMETERS_RM'
  catch /SAPSRM/CX_PDO_ERROR_GEN.
endtry.
endmethod.

Similar Messages

  • How to close browser window with AS2

    I'm currently working with a flash movie that opens up an IE browser to an external link.
    Since I'm working with a presentation that plays automatically after a few seconds and keeps loading new IE browsers with different links, I was wondering if there was a way with AS2, i can have flash close the IE window it opened?

    I need to close the IE window WITHOUT the use of a button. I need
    to have flash close the IE window it opens after a couple of frames. thanks in advance

  • Close Browser window when you close 10g forms

    Help Please.... I am trying to close browser window when I exit 10g forms:
    Per oracle Note:115905.1
    create close.html file Put the html file in the webserver root.
    I created the following file in $ORACLE_HOME/Apache directory (webserver directory??)
    1.)Create an html file (es. close.html):
    <html>
    <body onload="closeit()">
    <script>
    function closeit()
    win = top;
    win.opener = top;
    win.close ();
    </script>
    </body>
    </html>
    In exit form when button pressed I have the code
    web.show_document('http://apphost1.univ-wea.com:7777/close.html','_self');
    The brwser window does not close automatically.
    thanks,
    Anitha

    Hello this is saras from chennai.
    Now i m developing oracle forms using 6i. now i m running it independantly. that is i put forms in one folder and run these forms using shortcut. If i m using the same in client machine also. But now i want to run these forms in webbrowser(client-server). for this i done the followings.
    1. installing forms server and reports server.
    2.Also i install IIS Server and appachie server also.
    3. I had fmx files.
    now i dont know the procedure to configure these web server with forms server. And i hold the fmx files in inetpub\wwroot folder.
    Which one is the easy method appachiee server or iis server.
    Please help me to run these fmx files in web browser.
    I m eagerly waiting for your favourable reply.
    saras,
    [email protected]
    chennai

  • Getting hang/crash problem when I try to close browser window from applet

    I have a small Apllet that has a button that calls a Javascript function in the opening window, to close the window in which it is loaded.
    The Applet window is a PopUp window from one of my application's window. First time I start my application and load that Applet the button works fine. It calls the Javascript method and the Method closes the window using the self.close() method.
    But now if I open the applet window again and click on the button to close the windows, it hangs. I put in trace statements and saw that it hangs on JSObject.getWindow() window.
    I am using JDK Plugin 1.4.2_07 and 5.0 , if I work out on IE browser, it works fine.But when I use firefox or mozilla it gives problem of hanging/crashing.
    Note that in case of 1.4.2_07 this problem experienced some times but in case of 5.0 it gives always for other than IE browser.
    Please, if somebody could give me some clue about why this would happen, I will really appreciate that. and code related to this is given below
    import javax.swing.JApplet;
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import netscape.javascript.JSObject;
    public class TestApplet extends JApplet implements ActionListener{
    protected JButton closeButton = null;
    protected JSObject win = null;
    private JFrame frame = null;
    private boolean alreadyClosed = false;
    public void init(){
    this.win = JSObject.getWindow(this);
    this.closeButton = new JButton("Close Browser Window");
    this.add(this.closeButton);
    this.closeButton.addActionListener(this);
    frame = new JFrame("Test Frame");
    frame.setSize(300, 400);
    frame.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.out.println("windowClosing");
    alreadyClosed = true;
    TestApplet.this.stop();
    frame.show();
    public void actionPerformed(ActionEvent ae){
    stop();
    public void stop() {
    if (!alreadyClosed) {
    alreadyClosed = true;
    frame.dispose();
    closeLaunchedBrowser();
    System.gc();
    System.runFinalization();
    private void closeLaunchedBrowser() {
    final TestApplet thisObject = this;
    Runnable r = new Runnable() {
    public void run() {
    try {
    JSObject win = (JSObject)JSObject.getWindow(thisObject);
    if (win != null && win.toString() != null) {
    //win.eval("top.opener=self;self.close();");
    //win.call("close", null);
    win.eval("self.close();");
    } catch (Exception e) {
    Thread t = new Thread(r);
    t.start();
    Thanks.

    I am waiting for any reply. I have tried for all these below options still I am getting Problem. I heard this is because of javascript, it wont call methods more times .Thats
    why I need other than JSObject or java script solution.If some one know anything about this or any modifications I have to made for the below options to avoid that problem please let me know.
    // URL durl = new URL(thisObject.getCodeBase(), "test/CloseMe.htm");
    // System.out.println("URL :" + durl.toString());      
    // thisObject.getAppletContext().showDocument(durl);
    //     thisObject.getAppletContext().showDocument(new URL("javascript:window.close();"), "_self");
    //win.eval("top.opener=self;top.close();");
    //win.call("close", null);
    //Object[] args = { "close", new Integer(50) };
    // win.call("setTimeout", args);
    //win.eval("setTimeout("close", new Integer(50));");
    If it is the problem of JRE I just need it should work on 1.4.2_01 or higher.
    thanks.

  • They sent me a serial number for a windows version of PS Elements when I ordered a mac version.  The serial number doesn't work, not surprisingly, but they don' t seem to care.  I have tried the chat line and have waited for almost a day with no response.

    They sent me a serial number for a windows version of PS Elements when I ordered a mac version.  The serial number doesn't work, not surprisingly, but they don' t seem to care.  I have tried the chat line and have waited for almost a day with no response.  What should I do?

    Look here
    Order product | Platform, language swap

  • Hi, I have iPad 2 and iPhone 4S and I have a problem a camera problem it doesn't work when I try try to open it it reclose also I can't close my iPad with upper button and I can't restart

    Hi, I have iPad 2 and iPhone 4S and I have a problem a camera problem it doesn't work when I try try to open it it reclose also I can't close my iPad with upper button and I can't restart help me

    - Reset the iOS device. Nothing will be lost.
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up                             
    - Restore to factory settings/new iOS device.
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar                       

  • How to close browser window after user log out

    Hi,
    Does anyone know how I can close browser window after user logs out. The scenario is when user clicks a log out button I will invalidate user session and close the browser right away in the backing bean.
    Your help would be appreciated.

    Try run this and you'll see that it runs fine with no exceptions:
    <%
         String someText = "bla bla bla";
         response.setContentType("text/plain");
         response.setHeader("Content-Disposition", "attachment;filename=message.txt");
         try {
              ServletOutputStream os = response.getOutputStream();
              os.write(someText.getBytes());
              os.flush();
              os.close();
         } catch (Exception e) {
              out.println("ERROR: " + e);
    %>It looks like that after I've closed the outputStream I can't do any more processing in the JSP. Even if I remove the setContentType and setHeader methods it still behaves this way.
    I'm starting to think that there's no way around this...??

  • Resize animation in browser window with toolkit for createjs

    Hi. I'.m a flash newbie with little coding experience. I have an animation that I created in flash that I exported to html5 with toolkit for createjs. It looks good, however I would like to have the animation be proportionally sized to the browser window, so that it can be viewed on a variey of devices. My iPhone seems to adjust the size, however when I view it on the desktop, the bottom gets cut off, and remains the same size when I resize the browser window. Is there any way to have the animaton resize according to the browser window?
    Thanks
    Tom

    Great news! I used media queries inside of CSS and got my home page to work on a nice 1280x720 effortlessly However, i have a slideshow script that has the image running 1000x400 and I am wanting to know if there is a way to access the variable of this script:
    // JavaScript Document
    var mygallery=new fadeSlideShow({
        wrapperid: "slideshow", //ID of blank DIV on page to house Slideshow
        dimensions: [1000, 400], //width/height of gallery in pixels. Should reflect dimensions of largest image
        imagearray: [
        ["slideshow/XavierHeadSlide1.jpg"],
            ["slideshow/XavierHeadSlide2.jpg"], ["slideshow/XavierHeadSlide3.jpg"]
             //<--no trailing comma after very last image element!
        displaymode: {type:'auto', pause:1500, cycles:0, wraparound:false},
        persist: false, //remember last viewed slide and recall within same session?
        fadeduration: 2000, //transition duration (milliseconds)
        descreveal: "ondemand",
        togglerid: ""
    I want to access the "dimensions" variable in CSS so I can modify the size without having to create a second image that is slighty smaller... I tried setting the slideshow DIV as a CSS class, but it just simply cut off the image.
    thanks a bunch for all of your help on this matter.

  • How to create a dialog window with no button that opens along with the main window?

    When the main window is open, the dialog window opens up immediately and can be closed by key press. At other times, when the next step, ie: decision, comes to, the another dialog window pops up again and is again closed by key press. Does anyone know how to do? Use the sub-Vi? notification method? occurrence method?
    And another thing: how to create a reusable dialog window with no button so that different messages can be sent to it and it can closed by key press. And how to pass the string to the title of the dialog window programmatically?

    For your functionality (If I understand it right), nothing needs to be in the event structure. Pressing any key just triggers the event, thus finishing the VI (there is no while loop).
    Could you tell me what you mean my "it won't run properly"? Make sure that the front panel of the subVI is closed before starting the main VI. Remember that the subVI is set to "open when called" and "close afterwards if originally closed". So, if you had the panel open already, it won't of course close when finished!
    (Actually, the problems is worse when you have the subVI panel open when starting the main VI. you get a catch22 and labVIEW locks up because (1) the subVI is set to dialog and grabs all attention but (2) it has not been
    called, thus the event cannot be triggered. So don't do that!!!! As a quick workaround, add the modification shown in the attached image to ensure the panel of the subVI is closed.)
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    CloseNoButtonDialog.gif ‏3 KB

  • How to close Browser by using a button

    I want to close my browser window using a button in ADF JSF Page.
    How it can be done .... ?
    Regards
    MS Arain

    Thanks to all of you i got a hint from your guys which resolve the issue
    however i want to share how i have resolved this issue i may be wrong
    or there may be any easy alternative that is why i am sharing it.
    I adopted the following steps
    1. Add a New Command Button in my JSF Page
    2. Attached a client listener with the command button
    <af:commandButton text="Close &amp; Exit" id="cb8">
    <af:clientListener method="closeWindow" type="action"/> ---// This is the attachment syntax
    </af:commandButton>
    3. Define a closewindow java script as follows
    <af:resource type="javascript"> --// this is how we declare/define java script in ADF
    function closeWindow(actionEvent) {
    window.close();
    </af:resource>
    Regards
    MS Arain

  • How i can open a browser windows using a button in jsf ?

    Hi
    Thank you for reading my post
    how i can open a browser windows using a button in jsf ?
    for example if i want to open a window which will show http://www.mywebsite.com?name=TestName&family=TestFamily
    and before opening the window i need to set those two variables.
    can some one help me with a solution ?
    thank you

    Hi Legolas,
    Please refer to the answer provided by Chris in the EA forums.
    Cheers
    Giri

  • Opening a browser window with Java

    Is there a way I can open a Browser Window (with a specific html document) from Java? Thanks.

    Use Runtime.exec(cmd) with the following command:
    Under Windows 9x:
       command.com /C" start "urltofile.html"Under other Windows:
       cmd.exe /C [start] "urltofile.html"  (start is needed when url begins with 'http://")

  • Express install always asks user to close browser window

    Is Adobe in charge of the code that closes browser windows at
    the end of express install?
    I'm currently using SWFobject 1.5 to embed my flash movie
    with express install active and neither IE6, IE7 or firefox will
    automatically close once express install has finished. It used to
    be that IE would close and reopen the window, firefox never used to
    but that's a different topic I'm sure.
    Perhaps Adobe changed something?

    Never mind, found the answer here:
    Re: Closing brower window

  • Close a window using a button

    Hi,
    How do i close a window using a button in that window.
    I thought i might be able to add a windowListener to that button but that doesnt seem to work, any ideas?
    Thanks
    Cath

    eg
    http://www.geocities.com/rmlchan/tst.html

  • Popup window with radio button-urgent

    Hi..
    Is ther any functionmodule for dispalying a popup window with radio button ....

    Use This
    K_KKB_POPUP_RADIO2
    I_TITLE   ...                      This is the title                       
    I_TEXT1   ...                      first radio button                      
    I_TEXT2    ...                     second radio button                     
    I_DEFAULT     ...                  default                     
    reward if useful
    Amit Singla

Maybe you are looking for

  • URGENT please help - XDCAM issue

    Hello all I am trying to edit some footage off a hard drive recorded on XDCAM in FCP v6.0.1 At first I was getting a white screen and just the audio so I have installed all the codecs and drivers that I can find but now I can see the picture but the

  • Player not working in IE

    The player on this page is not working on I.E. It works on Safari and Firefox. I hope someone can help me. Thanks so much. < http://www.principalspartnership.com/ateam/ > Nancy

  • Battery Woes

    So I purchased the Nokia 822 because it has the removable battery.  Glad I did,  6 months later, the battery is shot.  I had to buy a replacement.  I was charging four times a day, and if I was lucky, I could make it 6 hours.  My usage and areas of u

  • Create Procedure - How to Detect Compilation Errors

    Hi, I am working on an application where users will be able to type in their own stored procedures. I perform some basic parsing of the function spec, to make sure it is well-formed, but that's all the parsing I do. I assumed an SQLException would be

  • SCCM 2012 - Issue

    Hi All, Unfortunately one of my collegue deleted the primary server computer account. But with a good back up i have recovered the primary site server back to normal condition. Since then i got some errors throwing up from the console. Please help 1.