Disallow browser window close x button when using separateFrame=false

Hi!
For problems with mutlicore processors and seperateFrame=true we have to workaround this with change to seperateFrame=false.
The biggest problem is actual the behaviour when using the close button (x).
With seperateFrame=true this closed every single form of the call stack, asks you to commit or discard your changes for every single form.
With seperateFrame=false this closed the whole application without asking, changes are rolled back.
Are there any possibility to disable the x button or catch the close command from browser to the forms session?
kind regards
Torsten

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

  • Browser window close

    If a form is running through a browser, how can the developer ensure that whan a user closes the browser, and so bypasses an application shutdown button, all correct application close functionality is handled.

    Facing this exact issue ..
    Here are the other things that I tried.
    Can someone please help ?
    PS2-Calling an ActionListener on browser window close using JS eventQueuing

  • How do I close a JInternalFrame when using subclasses and a separate cla...

    The heading should be: How do I close a JInternalFrame when using subclasses and a separate class for the actionListener?
    I have just created a JInternalFrame appclication and now I want to structure up my code. I have a Superclass that contains the usual settings for the two JInternalFrame:s, and the two subclasses with frame specific information. Both the JInternalFrames use the same OK button. I want to have the actionListener outside the classes to avoid repetition of code. But the dispose()-function does not work properly, it does not close the opened JInternalFrame. What�s wrong?
    class Superclass extends JFrame
         JButton b= new JButton("ok");    
         Superclass()
    class Subclass1 extends Superclass
         Subclass1 ()
              add(ok);
           ok.addActionListener(new Listener());
    class Subclass2 extends Superclass
         Subclass2 ()
              add(ok);
           ok.addActionListener(new Listener());
    class Listener extends Superclass implements ActionListener
         public void actionPerformed(ActionEvent e)
                   dispose();
    }How do I controll in the Listener class that the button in Subclass1 is beeing pressed?

    First of all I think I misunderstood your question. You said you had two internal frames, so I thought you wanted to close the internal frame.
    It now looks to me like you want to close the entire JFrame, which makes the code even a little easier. Something like:
    JComponent component = (JComponent)event.getSource();
    JFrame frame = (JFrame)SwingUtilities.windowForComponent( component );
    frame.dispose();
    Ok, I will make a try:
    public static Container getAncestorOfClass(Class c, Component comp)
    w.getAncestorOfClass(w, this); Fiirst you need to learn the basics of reading the API.
    "getAncestorOfClass()" is a static method. That means you don't use a variable to invoke the method. You use the class itself.
    "w" is a variable, which is a JFrame, but that is not what the first parameter should be. The first parameter is a "Class".
    "this" will refer to your Listener class, but you need the Component that generated the ActionEvent.
    When I thought you wanted to close an internal frame then the code would have been something like:
    JComponent component = (JComponent)event.getSource();
    Container container = SwingUtilities.getAncesterOfClass( JInternalFrame.class, component );
    JInternalFrame internalFrame = (JInternalFrame)container;
    internalFrame.invokeSomeMethodHere();If you need further help then you need to create a "Short, Self Contained, Compilable and Executable, Example Program (SSCCE)", that demonstrates the incorrect behaviour.
    http://homepage1.nifty.com/algafield/sscce.html

  • If I have multiple browser windows open (not tabs, windows) and I close 1 of them, why do ALL browser windows close?

    If I have multiple browser windows open (not tabs, windows) and I close 1 of them, why do ALL browser windows close?

    How are you closing the window?
    Are you using the File menu or the close X on the title bar?
    Use Alt + F to open the File menu with the Close Tab entry visible (doesn't work with the mouse).

  • Setting up Private Browsing window to open up when Safari icon is clicked on first.

    Setting up Private Browsing window to open up when only Safari icon is clicked on first, and remains after shut down.

    Hi css,
    Welcome to the Apple Support Communities!
    I understand that you would like to click on Safari in your Dock and have it open a new Safari Window. As you said in your post, clicking on Safari in the Dock brings the Safari window forward. There are a couple of possibilities to help resolve this situation. You can control-click (right click if enabled) on Safari in your Dock which will give you the option to open a new window. You can also click and hold on Safari, otherwise known as Press, to display these same options.
    Mac OS X: Additional features of the Dock - Apple Support
    Mouse clicks and key combinations for the Dock
    Control-click
    Reveals contextual menu for item. Menu choices vary per application or file. When used on Dock separator, it reveals Dock preferences. There you can turn magnification and hiding on or off, change the position of the Dock on screen, and change the minimization effect. Choose Dock Preferences to see more options.
    Press
    Reveals contextual menu for item. Menu choices vary per application or file.
    Cheers,
    Joe

  • Whenever I open new tabs Firefox crashes and the browser window closes automatically.what will I do?

    I am facing this problem since a month.I never faced this problem before.I always feel good to use Mozilla Firefox as my browser.I used to open multiple tabs in a same browser window.For example- in a tab I logged in to Facebook,at same time I might be downloading songs or something else or open another site in the other tab.It might be 2 or 3 tabs sometimes.But now a days,I am facing the problem whenever I open multiple tabs.Its unusual and so much annoying.The Firefox crashes and the browser window closes showing a messege to send an error report.Please Help me.
    N.B. - I am using the Windows service pack 2.
    RAM - 2 GB
    Hard disk MEmory - 250 GB.

    I had this same problem. Seems to be caused by the web developer tool bar FF extension (this started happening after a recent update to that extension). After disabling it, my FF is back to normal :)

  • Trouble with 3d window on ArchiCAD 16 when using Led Cinema Display 27" with GT 330M 256MB connected to my MacBook Pro 15" mid 2010, but runs fine on the attached display.

    Trouble with 3d window on ArchiCAD 16 when using Led Cinema Display 27" with GT 330M 256MB connected to my MacBook Pro 15" mid 2010, but runs fine on the attached display.

    Trouble with 3d window on ArchiCAD 16 when using Led Cinema Display 27" with GT 330M 256MB connected to my MacBook Pro 15" mid 2010, but runs fine on the attached display.

  • TS1398 How can I use both, Windows PC and iMac, when using WiFi?. It is either-or. What can I do?

    How can I use both, Windows PC and iMac, when using WiFi?. It is either-or. What can I do?

    What does this have to do with using an iPad?
    But yes, you should be able to connect to your home WiFi network with multiple computers and devices. In my house my wife, my daughter and I will all be using the WiFi Internet connection at the same time with our Laptops and I will also be using my iPad, my daughter uses her iPhone, and we have no issues at all.
    Is this what you want to know about?

  • 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.

  • BSP session not dying when browser window closes

    Hi,
    I am having a small problem with the bsp session. I shall explain the prb with an example.
    Lets say i have a bsp application BSP1. I open the application from the Favorites tab in the SAPGUi.
    Initially, i have another browser window open containing google.com(this is imp that i have another browser open all the time containing anything). I now start BSP1, then i close the window by hitting the close button of the browser, as a result the controller sends a exit view back to the frontend which never gets displayed. now i start BSP1 again from SAPGUi, and the browser instead of showing me the logon screen and the start page goes to the exit page of the application. In other words to the last URL that i visited last time in the application. Somehow when the window is closed, the session on the applicaiton server is not dying. This only happens if i have any other browser open all the time containing any thing.
    If i do not have any other browser open, and then i follow the above sequence of events,everything runs smoothly. Also, in the previous case, if i close the google window also and start the application again, everything runs smoothly. In IE settings , in Advanced tab there is a setting for REUSE EXISTING WINDOWS FOR LAUNCHING SHORTCUTS. If i set this option, everything runs smoothly, even if i have a Google(whatever) window open all the time. If i do not set this option, i run into the problem as in the first case. Also, if instead of opening the application through the SAPGui i open another browser from the taskbar and type in the URL , everything runs smoothly inspite of another google window being opened all the time.
    Also this problem is evident in systems with BASIS 640/level 10 and BASIS 620/level 19. It might be present in other versions also but i am working on these two systems with these versions. This problem does not pop up on BASIS 700.
    If on exit, within the controller, i reset the keep_context attribute of RUNTIME  object, everything runs smoothly.
    could you please guide me as to what can be the problem here and how it can be solved. It is important. Any kind of help and guidance would be highly appreciated.
    Looking forward to your response,
    Thanks and best regards,
    Ghufran

    The very first important aspect to understand is that CANCEL kills the session long before the request reaches the ABAP stack. So what ever you want to do, this is not the way to go.
    From reading your first post in this thread through, I have the impression that you might have some confusion between stateful versus authentication. No, I it is not the problem/solution, but just that your very long descriptions without using consistant terminology makes it difficult to understand where we are going.
    Thus, I would recommending read this article for background information:<a href="/people/mark.finnern/blog/2003/09/24/bsp-in-depth-confusion-between-stateless-stateful-and-authentication">BSP In-Depth: Confusion between Stateless, Stateful and Authentication</a>.
    Next, you CAN NOT "redirect it to the browser on the onbeforeunload() event". Well, at least I never have never succeeded.
    Once the closed button is hit, you have not many options. One idea is a window.open, see system application for examples. The other is the image loading trick that Thomas describes in his weblog. Both ideas will actually solve your problems (once you really understand what is happening). This is unfortunately not always perfectly easy.
    brian

  • PS2-Calling an ActionListener on browser window close using JS eventQueuing

    Hi ,
    I need to call an Action Listener(to do some post processing) when a browser window is closed.
    To achieve this I am using the ADF Javascript APIs.
    I tried the following but neither worked :(
    1)Having the following JS code directly in my jspx page -
    <af:resource type="javascript">
    window.onunload = function(evt){
    var button=AdfPage.PAGE.findComponentByAbsoluteId("button"); /** Getting the Abs Id of a button which has the needed ActionListener attached to it */
    AdfActionEvent.queue(button,true);
    </af:resource>
    2)Have a clientListener under the af:Document with type as "load" which calls a JS method as below
    <af:resource type="javascript">
    function onLoad(evt){
    window.onunload = function(evt){
    var button=AdfPage.PAGE.findComponentByAbsoluteId("button");
    evt.cancel(); /* trying to make sure that this doesnot get propagated to the server*/
    AdfActionEvent.queue(button,true);
    </af:resource>
    3) Having a clientListener call a JS method which queues a Server Listener to call a Action Listener.
    window.onunload = function (event){
    var source = event.getSource();
    AdfCustomEvent.queue(source,"serverListenerMethod",{},false);
    Also client attribute for the "button" is true.
    I am making sure the code is put under metaContainer tag of the af:document
    Thanks

    Yes I had tried that .. the alerts fire fine as mentioned in my previous posts too ...
    But the issue here is to call a server Listener which will call some bean code for some logic when a browser window is unloaded /closed!
    As per Frank's post this is not possible using a simple clientListenr as -
    "the browser native JavaScript unload event itself is not very helpful to send an event to the server using the af:serverListener tag. The reason for this is that when the unload event fires, the page already has been unloaded and the ADF Faces AdfPage object needed to queue the custom event already returns null. "

  • Force a window browser window close when open docs FROM THE KD

    We have an issue when opening documents from the kd a browser window opens, then the office doc opens. But it leaves the blank browser window there open. I have looked into it, and it appears the ptcommonOpener may be able to be modified with a piece of javascript "currentWin.close" in the href that gets built with the link.
    Does anyone have any experience with this or another way to do it.
    Thanks

    the problem has been solved for me following the process :
    1 -close entourage
    2 - start and follow the complete reconstruction of the entourage database ;
    3 - in the "entourage" menu, disable "office reminds" or "office recall" (i don't know the exact name because my entourage is in french)
    For me it has worked. when i click on the dock entourage shortcut it opens without showing the new message windows at start.

  • Open Browser Window Close Previous Window

    Thanks for taking a look at my problem.
    I am using Dreamweaver MX, and I have a web page where there
    are several small thumbnails. When you click on a thumbnail a
    larger picture opens in a seperate browser window. What I would
    like to do is to have this new window display some arrows that when
    clicked, cycle the to the next picture, without having to go back
    to the original window to click the next picture. This I can do,
    the trouble I am having is that when I click an arrow to bring up
    the next picture, is there a way to make the previous browser
    close. Otherwise I will have my main index page with a ton of
    residual small windows all over the place.
    Long story short: Is there a way to close a previous browser
    window, when a new browser window is called to open?
    I have some basic knowledge of web design and making a
    javascript scares the life out of me. Is there a simple add on to
    the "Open Browser Window" code.
    Problematic
    Page

    Or, open the new browser window with the same name as the old
    one.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "nickname777" <[email protected]> wrote in
    message
    news:e6mr52$pgc$[email protected]..
    > Thanks for taking a look at my problem.
    >
    > I am using Dreamweaver MX, and I have a web page where
    there are several
    > small
    > thumbnails. When you click on a thumbnail a larger
    picture opens in a
    > seperate
    > browser window. What I would like to do is to have this
    new window display
    > some
    > arrows that when clicked, cycle the to the next picture,
    without having to
    > go
    > back to the original window to click the next picture.
    This I can do, the
    > trouble I am having is that when I click an arrow to
    bring up the next
    > picture,
    > is there a way to make the previous browser close.
    Otherwise I will have
    > my
    > main index page with a ton of residual small windows all
    over the place.
    >
    > Long story short: Is there a way to close a previous
    browser window, when
    > a
    > new browser window is called to open?
    >
    > I have some basic knowledge of web design and making a
    javascript scares
    > the
    > life out of me. Is there a simple add on to the "Open
    Browser Window"
    > code.
    >
    >
    http://www.superiorcabinets.ca/Showroom_Calgary.htm
    src="/webforums/forum/images/i/expressions/face-icon-small-sad.gif"
    border="0">
    >

  • LMS Window Close (exit button...again)

    Yes, I know this is a freq. encountered issue. I thought I had fixed this but apparently that was just wishful thinking.
    If I publish my project with the full screen option, the lesson is opened as a child window and the playbar exit button works as advertised; the window closes.
    If I enable LMS reporting and perform the same steps, the playbar exit button does not work.
    What's up with that? What is it about the published SCORM version that disables the exit button?

    Here is what I did to get the exit button in the playback bar to close the content window in our LMS. I did not want to have a seperate button object.
    Your mileage may vary. I may be violating some SCORM rules but too bad. The trace shows the terminate is clean, as the code runs upon the unload of the content window. I do not have a quiz in my SCO/SWF.
    File locations are as they appear on my laptop. I am using ActionScript 3 in Captivate 5 on Windows XP.
    Backup app source files if you are skeered of breaking them.
    1. Edit the playback FLA for the skin you are using. Mine is C:\Program Files\Adobe\Adobe Captivate 5\Templates\PlaybackFLA\AS3\SpaceBlue.fla.
    Edit the action code for pbcBtnExit. Add two lines in red:
    var btnTipsId = 8;
    function onClicked()
    import flash.external.ExternalInterface;
    ExternalInterface.call("closeWindow");
    parent.onPBCBtnClick("exit");
    2. Save and publish the playback FLA to C:\Program Files\Adobe\Adobe Captivate 5\en_US\Gallery\Playbars\AS3.
    3. To include tweaked code every time you publish for SCORM, edit the HTML source code. The folder is C:\Program Files\Adobe\Adobe Captivate 5\Templates\Publish\SCORM\2004, as I choose SCORM 2004 in the Captivate reporting preferences.
    The file can be Custom.htm,Default.htm or SendTrackingDataAtEnd.htm, depending on what you select as the Template in the reporting preferences of Captivate.
    Add this script in the header:
    <SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
      function closeWindow (message){
      window.top.close(self);}
    </SCRIPT>
    You may have to play around with the javascript to find the right opion that works in your situation.
    Save.
    4. Publish the Captivate project. Exit button now works for me.
    There may be an easier way to get the Exit button to do this but I did not see it. I submitted an enhancement request to Adobe suggesting that the Exit button should be programmable to some extent.

  • How to have a close tab button when you have only one tab ?

    I'm using FF 24.0 on Win 7 enterprise x64.
    I would like to have an option to have a close tab button ("x") when you have only one tab.
    Is this possible ? How ?
    If not how to submit a feature request ? I did it 10+ times with feedback but didn't see any change.
    Thanks

    Thanks again for the "close button" addon advice. I tried it but no luck, the close button doesn't appear on tabs but in the toolbar (which I do not display).
    So the problem remains for me.

Maybe you are looking for

  • HELP! Need to undo updates for a Goods Receipt - incorrect PO

    Hi there, I'm fairly new to SAP Business One and made a mistake with my last Purchase Order/Goods receipt. The parcel I had to book in arrived but the invoice had no PO number, so using the Query Manager I found out which Purchase Orders included the

  • Exception handling in CE Visual Composer 7.1

    Hi, I have modeled a CAF Business Object and a custom Find operation which looks for a custom key. After that, I have exposed that operation as Web service and consumed it in Visual Composer. It is working perfectly as long as the search key exists i

  • How do I keep a rented movie locally stored for the authorised period?

    Okay, so just bought an Apple TV for the first time, so this is all new to me! So far, most of it makes sense, but I'm wondering about how the unit manages downloaded content. It seems to me that you rent a movie, Apple TV starts downloading it and m

  • How to customize the Stamp Tax and the Municipal Property Tax

    Hi ! Can anyone tell me how to customize the Stamp Tax and the Municipal Property Tax in the RE-FX? Thanks in advance. Tiago

  • Problem Renewing my Skype Phone number

    I  just got an email from SKYPE saying my Skype Number is going to expire on June 11th and gave me a link to sign into my account.   But once I get there ther is no way to renew my Skype Number.  My only option is to create a New Skype Number.   I DO