Event on close Browser to unlock Data

Hi experts,
I have an OVP Floorplan and the problem is, that by closing the Browser, all Data Locks remain in SM12.
Is there an Event or Method called before closing the browser or how can I Unlock the Data?
I've red, that the Method WDDOINIT of the Application Component Controller is called, but how can I access this Method.
I have Feeder-Klasses for the UIBBs and an Assistance Class for the Application Component Contoller, but there is no Method WDDOINIT in this Assistance Class!
Thanks and regards,
Sebastian

Hello Sebastian,
I solved the browser close problem enhancing the class CL_FPM, to release locks/resources (since the exit event is not propagated from WD to FPM). To do this our own methods have to be called somehow before framework is releasing resources in method DELETE of class CL_FPM.
The steps required to reach this:
Create an enhancement of class CL_FPM
Add a new member table attribute f.e. mt_zzcallbacks table to class CL_FPM
Add a new public instance method f.e. zzregister_callback to class CL_FPM, to put any class instance and method to the table above, from your own classes.(Methods added should not contain any obligatory parameter and has to be of type instance public also)
Create a pre-exit of method delete of class CL_FPM and loop over the callback table calling the methods dynamically (catch the following exceptions: ABAP Keyword Documentation).
Put your code to release the locks/resources into the registered callback methods (it will be called exiting the application )
This works when user closes the browser/tab improperly.
Of course you can provide a possibility to close the application using a button, where you can do additional checks etc, data loss notification etc.
So if you use a Close button with event FPM_CLOSE (doing checks etc. ) and releasing your locks also handling the event  FPM_CLOSE, then you can create a new method in class CL_FPM to deregister the method from the callback table, since you did free already and not necessary to do it again using the callback.
Kind regards
Attila

Similar Messages

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

  • [svn:cairngorm3:] 16810: Changed close event from flash.events.Event. CLOSE to mx.events.CloseEvent.CLOSE.

    Revision: 16810
    Revision: 16810
    Author:   [email protected]
    Date:     2010-07-03 03:32:49 -0700 (Sat, 03 Jul 2010)
    Log Message:
    Changed close event from flash.events.Event.CLOSE to mx.events.CloseEvent.CLOSE. See MXML examples in PopupTest.
    Modified Paths:
        cairngorm3/trunk/libraries/PopupTest/src/samples/ModulePopups.mxml

    Hmmm Strange!!!
    Seems like a bug which requires target for parallel effect while hide only but does not set it.
    For the time being you can remove the sequence effect as there is no othe effect other than parallel and use effect like
             <mx:Parallel id="fadeOutTw">
                <mx:Fade alphaFrom="1.0" alphaTo="0.0" duration="1000"/>
                <mx:WipeUp duration="1000" />       
            </mx:Parallel>
    or you can also set target explicitly like :
    <mx:Sequence id="fadeOutTW" >
            <mx:Parallel target="{largeImgTW}">
                <mx:Fade alphaFrom="1.0" alphaTo="0.0" duration="1000"/>
                <mx:WipeUp duration="1000" />       
            </mx:Parallel>   
        </mx:Sequence>
    I have tested on this code, and works fine. Hope this helps you
    -Vikash

  • [svn:cairngorm3:] 16809: Changed close event from flash.events.Event. CLOSE to mx.events.CloseEvent.CLOSE.

    Revision: 16809
    Revision: 16809
    Author:   [email protected]
    Date:     2010-07-03 03:05:21 -0700 (Sat, 03 Jul 2010)
    Log Message:
    Changed close event from flash.events.Event.CLOSE to mx.events.CloseEvent.CLOSE. See MXML examples in PopupTest.
    Modified Paths:
        cairngorm3/trunk/libraries/PopupTest/.actionScriptProperties

    Hmmm Strange!!!
    Seems like a bug which requires target for parallel effect while hide only but does not set it.
    For the time being you can remove the sequence effect as there is no othe effect other than parallel and use effect like
             <mx:Parallel id="fadeOutTw">
                <mx:Fade alphaFrom="1.0" alphaTo="0.0" duration="1000"/>
                <mx:WipeUp duration="1000" />       
            </mx:Parallel>
    or you can also set target explicitly like :
    <mx:Sequence id="fadeOutTW" >
            <mx:Parallel target="{largeImgTW}">
                <mx:Fade alphaFrom="1.0" alphaTo="0.0" duration="1000"/>
                <mx:WipeUp duration="1000" />       
            </mx:Parallel>   
        </mx:Sequence>
    I have tested on this code, and works fine. Hope this helps you
    -Vikash

  • [svn:cairngorm3:] 16808: Changed close event from flash.events.Event. CLOSE to mx.events.CloseEvent.CLOSE.

    Revision: 16808
    Revision: 16808
    Author:   [email protected]
    Date:     2010-07-03 03:04:40 -0700 (Sat, 03 Jul 2010)
    Log Message:
    Changed close event from flash.events.Event.CLOSE to mx.events.CloseEvent.CLOSE. See MXML examples in PopupTest.
    Modified Paths:
        cairngorm3/trunk/libraries/Popup/src/com/adobe/cairngorm/popup/PopUpBase.as
        cairngorm3/trunk/libraries/PopupTest/.actionScriptProperties
        cairngorm3/trunk/libraries/PopupTest/.flexProperties
        cairngorm3/trunk/libraries/PopupTest/src/PopUpMXMLExample.mxml
        cairngorm3/trunk/libraries/PopupTest/src/samples/MyPopup.mxml
        cairngorm3/trunk/libraries/PopupTest/src/samples/ZoomAndFadePopUpBehavior.mxml
        cairngorm3/trunk/libraries/PopupTest/src/samples/parsley/ParsleyPopup.mxml
    Added Paths:
        cairngorm3/trunk/libraries/PopupTest/src/samples/ModulePopups.mxml

    Hmmm Strange!!!
    Seems like a bug which requires target for parallel effect while hide only but does not set it.
    For the time being you can remove the sequence effect as there is no othe effect other than parallel and use effect like
             <mx:Parallel id="fadeOutTw">
                <mx:Fade alphaFrom="1.0" alphaTo="0.0" duration="1000"/>
                <mx:WipeUp duration="1000" />       
            </mx:Parallel>
    or you can also set target explicitly like :
    <mx:Sequence id="fadeOutTW" >
            <mx:Parallel target="{largeImgTW}">
                <mx:Fade alphaFrom="1.0" alphaTo="0.0" duration="1000"/>
                <mx:WipeUp duration="1000" />       
            </mx:Parallel>   
        </mx:Sequence>
    I have tested on this code, and works fine. Hope this helps you
    -Vikash

  • How to capture when user closes browser

    I am implementing a scenerio where I need to reset login status in the database to false when a user closes browser without logout. I am at fix, how do I do that ????? With the java script solution, its a browser dependent and may not work with all the browser. With java sessionListener, the sessionDestroyed() method is never called when browser is closed.
    Plz. help... how can I capture the browser closing event. My application is running on Websphere and integrated with active directory for authentication and authorization.
    Thanks in advance......

    SoulTech2012 wrote:
    what about HttpSessionBindingListener?
    javascript solution doesn't sound good to me"hack" was chosen for that reason. Currently, there are no real good solutions for this. The browser runs autonomously from the server so there is not a lot that can be done. HttpSessionBindingListener is intriguing but I bet when the browser is x'd out of there is nothing sent to listen to.
    The first reply "reasonable timeouts" is the most relied on solution. All others are a lot of work for iffy pay back at best. This is one of the issues that has forced me into rather strict no session solutions.

  • 7 day view of Calendar Events on the Slide to Unlock Screen???

    Does anyone agree that an option to view Calendar of Events on the Slide to Unlock Screen would be a quick and easy way to review your next events and appointments?
    Message was edited by: page79
    Message was edited by: page79

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer                            
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar              

  • LifeCycle Form Server :- My form is rendering as pdf in the browser  without displaying data sometim

    LifeCycle Form Server :- My form is rendering as pdf in the browser without displaying data sometimes within data fields, and at other times it will display data. The form consistently displays data when rendered in HTML.
    We display the forms in a browser either HTML or PDF format based on the user selection. But the behavior of PDF format is not consistent. Sometimes it renders properly and sometimes the form renders without data.
    Dose any one experienced this issue?
    Any help would be greatly appreciated.
    Thanks in advance,
    RK

    I have been seeing the same issue, but haven't been able to find a fix for it yet. So any info would be appreciated here too.
    Thanks

  • ILife media browser has incorrect date for Aperture photos

    It looks like the iLife media browser use the date a preview was created as the date in the iLife media browser. Photos from the iPhoto library have the date the photo was taken.
    (A list view with file name, date and file size is available from a control click.)

    I got this to work by dragging a project out of my blue folders (it then showed up in iLife media browser), then I went back into Aperture, dragged it into the blue folder again, and quit Aperture. Just before quite Aperture updated the iLife preview exports and all of my blue folders and projects showed up in the Media Browser! Somehow dragging a project out and back in seemed to kick start the folder search.

  • Close browser window on click  - pass parameter

    Hi,
    I have two applications (iViews) in the portal, one passing parameter to the other. On click of 1st iView, it passes parameters to 2nd iView, which opens as a separate window in portal. I need to select some values in it and on clicking OK, some parameters should be passed to the 1st IView and the window must be closed. The parameter must be made available in the 1st Iview, by autorefreshing.
    Srinivasan T

    Hi,
    I try this and it is work fine
    This solution for IE7 & IE8
    <af:resource type="javascript">
         function closeBrowser() {
             window.open('', '_self', '');
             window.close();
    </af:resource>
    <af:commandButton text="Close Browser" id="cb1" immediate="true">
          <af:clientListener method="closeBrowser" type="action"/>
    </af:commandButton>Sameh Nassar

  • What can i do to regain the function of the close browser button?

    after using firefox for a number of weeks without problems, today the close browser button is not functioning! (white cross on red ground) The only way to close the browser is by using the task manager end task. This is a simple problem but what can I do to fix it? I have tried updating but not reinstalling.I dont have any more details I am afraid, the button just doesnt work. I dont think it is a problem with my computer cos for example 'word' closes as expected. Likewise Internet Ezplorer. More than that I do not have any idea why this is happening.

    That is Close the Window button, not close the browser, and with Firefox that makes a difference because of subtasks.
    The following may not completely eliminate having to terminate Firefox through the Windows Task Manager but it will come very close.
    '''Plug-in and tasks started by Firefox may continue after attempting
    to close Firefox''' The "X" in the upper right-hand corner closes the
    Window (same as Ctrl+Shift+W) but even if it is the last Firefox window,
    it does not necessarily close Firefox .
    The only '''proper way to exit Firefox''' is to use '''Exit''' through the
    File menu, not the "X" in the upper right corner of last Firefox window.
    In the 4.0 and up with the "Firefox" button that would be Alt+F then X
    * '''Firefox hangs''' | Troubleshooting | Firefox Support <br>http://support.mozilla.com/en-US/kb/Firefox%20hangs#w_hang-at-exit
    Use the '''Windows Task Manager''' to remove all running firefox.exe in the "'''Processes'''" tab of the Windows Task Manager, then restart Firefox.
    ''very infrequent --'' If Firefox will still not start, remove the parent.lock file from the profile which is created each time Firefox is started to prevent other Firefox tasks from running, see<br>
    http://kb.mozillazine.org/Profile_in_use#Remove_the_profile_lock_file
    '''Avoiding Problems with close/restart''' ''choose either extension''
    :Use to close and restart Firefox after enabling or disabling an extension, switching to a new theme, or modifying configuration files, then you don't have to worry about delay or have to look in the Task Manager to see if Firefox is closed yet.
    *"'''Restartless Restart'''" extension for Firefox 4.0+ only (2 KB download ) --
    uses keyboard shortcut "'''Ctrl+Alt+R'''" or a file menu option.
    <br>https://addons.mozilla.org/firefox/addon/249342/
    *"'''QuickRestart'''" extension (34 KB download) ''(older extension for those below 4.0)''<br>
    uses keyboard shortcut "'''Ctrl+Alt+R'''" or a file menu option. <br>https://addons.mozilla.org/firefox/addon/3559/

  • While browsing the cube data Excel the circle pointer starts to spin and the excel go into a not-responding state,any recommendations to improve performance in excel?

    hi,
    while browsing the cube data Excel the circle pointer starts to spin and the excel go into a not-responding state,any recommendations to improve performance in excel? 
    I have 20 measures and 8 dimensions.
    while filtering data by using dimensions in excel it is taking so much time.
    Ex:
    I browsed 15 measures in excel and filtered data based on time(quarter  wise) and other dimesion product. It is taking long time to get  data.
    Can you please help on this issue.
    Regards,
    Samba

    Hi Samba,
    What're the versions of your Office Excel and SQL Server Analysis Services? It will be helpful if you can share the detail computer resource information to us while encountered this issue.
    In addition, we don't know your cube structure and the underlying relationships. But you can take a look at the following articles to troubleshoot the performance issue:
    Improving Excel's Cube Performance:
    http://richardlees.blogspot.com/2010/04/improving-excels-cube-performance.html
    Excel Against a SSAS Cube Slow: Performance Improvement Tips:
    http://www.msbicentral.com/Blogs/tabid/131/articleType/ArticleView/articleId/136/Excel-Against-a-SSAS-Cube-Slow-Performance-Improvement-Tips.aspx
    Regards, 
    Elvis Long
    TechNet Community Support

  • I have changed the dates of photos in an event, but the event is still showing the original dates.

    I have a batch of old photographs that I have recently scanned and imported into iPhoto 11.  In iPhoto I changed the dates to the dates when the original photos were taken (between 1971 and 1976) using the "Adjust Date and Time" and "Batch Change" menu options.  This works fine as each photo now shows the date on which it was taken rather than the scan date which appeared when the photos were imported.  However, the event itself still shows the scan dates so it does not appear in the right place when sorting by date.  I'm finding this most perplexing because I have many scans of old photos (one goes back to 1900) and have been able to change dates of individual photos and the event has followed suit.  Any suggestions would be greatly appreciated. 

    Within minutes of posting this question I fixed the problem.  It's just a matter of holding down the Option and Apple keys while launching iPhoto and  then repairing the library database from the list of options that pops up on the screen.  Easy really.  Just took me two days to work it out.

  • Grabbing an event from a specific calendar by date

    Is there a way to grab an event from a specific calendar by date?
    Basically, I receive an email with information I want to put in the event name (title?) - it is in a particular calendar, and a on a particular date. I grab that event, update the event title with the information i parsed from the email message (i've already got that part done).
    I've looked through many applescript examples, but they all seem to deal with creating an event, not updating one.

    It's quite easy if you know specific value of the event, the following change summary property of the event:
    tell application "iCal"
    set _event to first event of calendar "Home" whose summary contains "Test..."
    set summary of _event to "More Test..."
    reload calendars
    end tell
    However, things get complicated when you try to get repeated events, because repeat events don't really have true start date and end date. So it's really difficult to get a repeat event by its start date or end date. See this thread:
    http://discussions.apple.com/thread.jspa?threadID=440481&tstart=0

  • Most simple query on Event Hub stream (json) constantly gives Data Conversion Errors

    Hello all,
    Been playing with ASA in December and didn't have any issues, my queries kept working and outputted the data as needed.  However, since January, I created a new demo, where I now constantly get Data Conversion errors.  The scenario is described
    below, but I have the following questions:
    Where can I get detailed information on the data conversion errors?  I don't get any point now (not in the operation logs and not in the table storage of my diagnostic storage account)
    What could be wrong in my scenario and could be causing these issues
    The scenario I have implemented is the following:
    My local devices send EventData objects, serialized through Json.Net to an Event Hub with 32 partitions.
    I define my query input as Event Hub Stream and define the data as json/utf8.  I give it the name TelemetryReadings
    Then I write my query as SELECT * FROM TelemetryReadings
    In the output, I create an output on blob with CSV/UTF8 encoding
    After that, I start the job
    The result is an empty blob container (no output written) and tons of data conversion errors in the monitoring graph.  What should I do to get this solved?
    Thanks
    Sam Vanhoutte - CTO Codit - VTS-P BizTalk - Windows Azure Integration: www.integrationcloud.eu

    So, apparently the issue was related to the incoming objects, I had.  I was sending unsupported data types (boolean and Dictionary).  I changed my code to remove these from the json and that worked out well.  There was a change that got deployed
    that (instead of marking the unsupported fields as null, they were throwing an exception).  That's why things worked earlier.
    So, it had to do with the limitation that I mentioned in my earlier comment:
    https://github.com/Azure/azure-content/blob/master/articles/stream-analytics-limitations.md
    Unsupported type conversions result in NULL values
    Any event vales with type conversions not supported in the Data Types section of Azure Stream Analytics Query Language
    Reference will result in a NULL value. In this preview release no error logging is in place for these conversion exceptions.
    I am creating a blog post on this one
    Sam Vanhoutte - CTO Codit - VTS-P BizTalk - Windows Azure Integration: www.integrationcloud.eu

Maybe you are looking for

  • The logic of iCloud settings ??

    The logic of iCloud settings ?? I don't understand how iCloud settings are organized. Can someone please explain? I indicate the confusing aspects below. Tapping iCloud brings up a page titled ‘iCloud' and which is a mix of Apple apps and services. B

  • Target mode not working restating holding T

    How do I restart in target disc mode with MAcbook pro , firewired to another mac, restarting holding the "T". It is not working,  I have to go to system preferences > startup Disk > and do Target Disk mode. Before I could just hold the "T " on restar

  • Form builder IZ(item)m]W vZ

    ] form builder LjBJ(item),%?IJ,@      d s]?\夠m6|?I./BmwhWvZ(v.W: :TEST.NUM02+:TEST.NUM03 =v.dBXh6).     BI?s\6|.

  • How do I turn off Safari temporarily so I can download software?

    How do I turn off Safari?  I'm downloading Microsoft Office Mac 11 but procedure stops due Safari application running.

  • Errors in reloading software & drivers

    I have an HP Photosmart D110a printer.  I currently am using the Windows 7 operating system.  I have had this printer for 2-3 years.  Initially, I set the printer up to use a wireless connection; that way everyone in the house could use the same prin