Is it possible to detect when a user navigates away from a webdynpro page?

I need to detect when a user navigates away to stop a timer set for the purpose of logging out a user after a certain amount of time. If they click exit I can capture the event but if they click another tab then I cannot. I know when in edit mode the SAP code for work protect will catch that and ask if you would like to save, but I don't think I have any access to that code. Does anyone know how they accomplish this and can it be done if the user is just looking at data also?

Yes, you can do that using Exit Hook method wdDoExit
We have used following hook to unlock the locked record of database table, which was open in edit mode.
//@@begin javadoc:wdDoExit()
  /** Hook method called to clean up controller. */
  //@@end
  public void wdDoExit()
    //@@begin wdDoExit()
     wdComponentAPI.getMessageManager().reportSuccess("exit called");
    //@@end

Similar Messages

  • Clear Dashboard prompts when user navigates away from the dashboard

    We show our users several dashboards with similar dashboard filters, for example region. When the user applies the dashboard filter on one dashboards, subsequently navigates to a second dashboard, the filter sticks. Is there a way to automatically clear the dashboard prompt?
    Thanks for the support!

    The below code is used for clearing the prompts values by hitting the button.
    See how it helps you
    To get this use Dashboard objects->Text->Check 'Contains HTML Markup' and use this content
    &lt div class="XUIPromptEntry minibuttonOn"&gt&lt a href="#" onclick="return PersonalizationEditor.removeDefaultSelection(false)"&gtClear&lt/a&gt</div>
    Replace &lt with < and &gt with >
    If it is helpful, please mark as correct or helpful
    Edited by: svee on Jun 28, 2012 6:44 AM
    Edited by: svee on Jun 28, 2012 6:47 AM

  • Detecting when the user is inserting a USB token

    Dear Forum,
    From a Java GUI application I'm trying to detect when a USB token (CrypToken from Marx) is inserted.
    When I run the program below with the USB token inserted it works fine. If I start the program and then inserts the USB token I keep getting a ProviderException.
    Any help is greatly appreciated.
    Kind regards,
    Morten Bruun
    The exception I get:
    java.security.ProviderException: Initialization failed
         at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:186)
         at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:76)
         at tryout.TestInsertToken.getProvider(TestInsertToken.java:38)
         at tryout.TestInsertToken.actionPerformed(TestInsertToken.java:47)
         at javax.swing.Timer.fireActionPerformed(Unknown Source)
         at javax.swing.Timer$DoPostEvent.run(Unknown Source)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Caused by: java.security.ProviderException: slotListIndex is 0 but token only has 0slots
         at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:171)
         ... 12 moreMy test program looks like this:
    package tryout;
    import java.awt.FlowLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.security.Provider;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.SwingUtilities;
    import javax.swing.Timer;
    public class TestInsertToken extends JFrame implements ActionListener {
         private Timer timer;
         private JLabel label;
         TestInsertToken() {
              this.setLayout(new FlowLayout());
              this.setDefaultCloseOperation(EXIT_ON_CLOSE);
              label = new JLabel("Insert token");
              this.add(label);
              timer = new Timer(1000, this);
              timer.start();
              this.setSize(300, 200);
              this.setVisible(true);
         private Provider getProvider() {
              try {
                   return new sun.security.pkcs11.SunPKCS11("pkcs11.cfg");
              } catch (Exception e) {
                   System.out.println("Got exception: " + e.getMessage());
                   e.printStackTrace();
                   return null;
         public void actionPerformed(ActionEvent e) {
              Provider provider = getProvider();
              if(provider != null) {
                   this.label.setText("USB token detected: " + provider.getName());
                   this.timer.stop();
         public static void main(String[] args) {
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        new TestInsertToken();
    }Edited by: Hr.Bruun on Nov 10, 2008 2:13 PM

    Thanks for replying, Andy!
    I know that if I point my gateway at 2013, I should be fine.  You mentioned that in this article: 
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/f622ff81-0d97-44d3-9051-f22c381fe188/exchange-2010-and-um-on-exchange-2013?forum=exchangesvrunifiedmessaging
    "Once the SIP connection is pointed to 2013, it will handle both the 2013 and 2010 Mailboxes in the Dial Plan" which I found and which was helpful.
    But, in the TechNet walkthrough:
    http://technet.microsoft.com/en-us/library/dn169226(v=exchg.150).aspx 
    And the checklist too:
    http://technet.microsoft.com/en-us/library/dn169228(v=exchg.150).aspx
    It's having us move the UM enabled users before we repoint the IP gateway, which is one of the final steps. Since we're just in pilot mode right now, we'd prefer to not re-point that just yet.  Do you expect it shouldn't work?  Is TechNet wrong or
    am I misreading it or missing something else?

  • Is it possible to hide a forms user parameter in the wrapper HTML page?

    Is it possible to hide a forms user parameter in the wrapper HTML page? I.E I want to start my form with MODULE=myForm userid=scott/tiger@db myParameter=SECRET.
    The http://myserver/servlet/f60servlet?config=myconfig successfully starts the application (after update of the basejini.htm and adding this section to the formsweb.cfg
    [myconfig]
    userid=scot/tiger@db
    myParameter=SECRET)
    However, when looking at the source of the wrapper html page one can see MODULE=myForm userid= myParameter=SECRET.
    As you can see the userid is nicely hidden by my secret parameter is not.
    Thanks in advance for ideas for solving this…

    We logged a similar issue through Oracle support recently (hiding the password) and we did get a very unsatisfactory response :
    ====
    View source is the functionality for browser . So that can't be done.
    You have two possible workaround for your problem.
    1.
    Invoke Registry & move to HKEY_LOCAL_MACHINES &gt;&gt; SOFTWARE &gt;&gt; ORACLE. Here create a new string value with the name LOCAL & value as the connect string you want. Now when you run the form on web, just give user name & password, the form picks the connect string from Registry.
    Note : You need to make registry entry in a machine where Forms Server is running.
    2.
    You can hardcode the username, password & connect string in the form's ON-LOGON trigger. To do this use LOGON built-in.
    ====
    Should you receive a better response : we are also interested.

  • How to clear text fields when the user navigates back to the screen

    Hi,
    Does anyone have any idea on how to clear the text input fields and dropdown boxes when the user navigates back to the screen, say for e.g. create screen?
    My issue is that i have plenty of fields in the create screen within a form. Is there a way to avoid programaticaly blanking out every field and just do it at the form level using an api to reset to a state before the user entry?
    Thanks

    This code allows you to make it more generic, and you would need to tweak it if there are more than TextInput controls, but it should provide some ideas.
    As far as using states, you could use SetProperty to set the text to empty, but that might be messier.
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
      <mx:Script>
        <![CDATA[
          import mx.containers.FormItem;
          import mx.controls.TextInput;
          import mx.events.IndexChangedEvent;
          import mx.core.Container;
          private function clearSreen(evt:IndexChangedEvent):void{
            var view:Container = tn.selectedChild as Container;
            for each(var child:Object in view.getChildren()){
              if(child is FormItem){
                var subchild:DisplayObject = child.getChildAt(0);
                if(subchild is TextInput){
                  TextInput(subchild).text = "";
        ]]>
      </mx:Script>
      <mx:TabNavigator id="tn" resizeToContent="true"
        change="clearSreen(event)">
        <mx:Form id="frm1" label="View Number One">
          <mx:FormItem label="First name:">
            <mx:TextInput/>
          </mx:FormItem>
          <mx:FormItem label="Last name:">
            <mx:TextInput/>
          </mx:FormItem>
        </mx:Form>
        <mx:Form id="frm2" label="View Number Two">
          <mx:FormItem label="Address1:">
            <mx:TextInput/>
          </mx:FormItem>
          <mx:FormItem label="Address2:">
            <mx:TextInput/>
          </mx:FormItem>
          <mx:FormItem label="City:">
            <mx:TextInput/>
          </mx:FormItem>
          <mx:FormItem label="State:">
            <mx:TextInput/>
          </mx:FormItem>
          <mx:FormItem label="Zip code:">
            <mx:TextInput/>
          </mx:FormItem>
        </mx:Form>
      </mx:TabNavigator>
    </mx:Application>
    If this post answers your question or helps, please mark it as such. Thanks!
    http://www.stardustsystems.com
    Adobe Flex Development and Support Services

  • Possible to block when browser says some plugin used by this page are out of date?

    Possible to block when browser says some plugin used by this page are out of date? I want to block the message.

    Hi I upgraded to latest version of Snow Leapard 10.6.8 from 10.5.6 and I was able to download latest flash. A screen told me to upgrade and it point me to the website. Ty

  • Social Data removed when a user is deleted from AD

    Hi,
    Will the social data (Tags and Notes) be removed when the user is deleted from the AD?
    Thanks.
    jingzo (^_^)

    The data will be deleted totally when the user removed from AD.Because,AD and sharepoint are in Sync with the user profile synchronisation service.please check the below link that explains the details.
    http://expertsharepoint.blogspot.de/2014/03/user-profile-service-and-user-profile.html
    Anil Avula[Partner,MCP,MCSE,MCSA,MCTS,MCITP,MCSM] See Me At: http://expertsharepoint.blogspot.de/

  • When user browses away from my html

    Like most of the use of swf, my swf is embedded in an html.
    I'm wondering if I can catch the event in my swf when user browses
    away from the html. Is swf gets unloaded at the time? Can I do
    certain things in actionscript when it happens?
    Help is appreciated.
    thanks,
    Ted

    Hi Ted,
    Tough to say how much you will be able to do as the URL is
    changing,
    but I believe JavaScript has some function like "onUnload"
    that you can
    use. You can then use the fscommand-style call to invoke a
    function in
    your Flash movie to let it now it's about to be gone.
    I haven't tried this though so I don't know how effective it
    is.
    Patrick
    nehcdet wrote:
    > Like most of the use of swf, my swf is embedded in an
    html. I'm wondering if I
    > can catch the event in my swf when user browses away
    from the html. Is swf
    > gets unloaded at the time? Can I do certain things in
    actionscript when it
    > happens?
    >
    > Help is appreciated.
    >
    > thanks,
    > Ted
    >
    http://www.baynewmedia.com
    Faster, easier, better...ActionScript development taken to
    new heights.
    Download the BNMAPI today. You'll wonder how you ever did
    without it!
    Available for ActionScript 2.0/3.0.

  • Add code behind functionality that run when the user view the SP 2013 content pages

    I need to add code behind functionality that run when the user view the SP 2013 content pages, What is the best approach to do that?
    is it add Delegate Control to master page?
    is it add code behind to master page?
    is there an event reviver for that?
    Your answer will be highly appreciated

    Hi,
    According to me, for code behind stuff
    Create master page(using module etc..), have the required placeholders in it.
    Then, create a page that inherit from this master page, now you can use that placeholder in you page.
    Lastly, place web parts in that placeholder. So, code behind will come with that master page .
    Hope it helps.
    Thanks
    -Rahul

  • Keeping state when switching to and back from a help page

    Hi
    Is there anyway to keep entered data in input fields when switching to and back from a help-page?
    I would like to let the user enter a lot of data (in a datatable), realize that he needs some help, click the help link, go to the link page without having all the data validated (immediate=true), and then return to the page with all the data still there.
    Any ideas

    <context-param>
            <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
            <param-value>client</param-value>
        </context-param>i found this in web.xml , please see if this is of any use ,if you already get it please post the answer
    cheers
    harsha

  • My iPHONE 5 wifi is NOT working when am 3 feet away from router while my iPhone 4s has full signal all the time.Please help.

    My iPHONE 5 wifi is NOT working when am 3 feet away from router while my iPhone 4s has full signal all the time.Please help.

    The problem would seem to be in the firewall in your router.  Have you tried disabling it? I assume you've updated the router firmware, right?  Consider bypassing the ISP provided router (using it as a modem only) and unsing another device such as an Aiport Express.

  • Need to stop playback of an FLVPlayback component when navigate away from page!

    I have an movieclip playing as auto start on the first page of my website.  The component continues to play when I navigate away from the page.  How can I stop the playback of the movie if it has not completed when navigation away from the page is invoked.  I have search and am unable to find such an event using an FLVPlayback component.  Presently there is no code in actionscript to display here.
    thanks

    Hi, this is the entire code that is placed on the timeline in frame 1 of the AS line.  There is now an error and the FLVPlayer component, which is also begin in frame 1. At this point there is one method that I thought should work when the vTinesDayBtn is clicked.  However, is not.
    The error is:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at ewddSite_fla::MainTimeline/vTines()
    ArgumentError: Error #1063: Argument count mismatch on ewddSite_fla::MainTimeline/stoppedVid(). Expected 0, got 1.
    The code is:
    stop();
    import flash.events.*;
    import flash.display.*;
    import fl.video.*;
    import fl.video.FLVPlayback;
    function stoppedVid() {
      vidPlay.stop();
    vTinesDayBtn.addEventListener(MouseEvent.CLICK, stoppedVid)
    function vTines(evt:MouseEvent):void {
    gotoAndStop(20);
    vidPlay.stop();
    function engagements(evt:MouseEvent):void {
    gotoAndStop(25);
    function weddings(evt:MouseEvent):void {
    gotoAndStop(30);
    function births(evt:MouseEvent):void {
    gotoAndStop(35);
    function birthdays(evt:MouseEvent):void {
    gotoAndStop(40);
    function graduations(evt:MouseEvent):void {
    gotoAndStop(45);
    function anniversaries(evt:MouseEvent):void {
    gotoAndStop(50);
    function specEvents(evt:MouseEvent):void {
    gotoAndStop(55);
    function memorials(evt:MouseEvent):void {
    gotoAndStop(60);
    //main.addEventListener(MouseEvent.MOUSE_DOWN, mainPg);
    vTinesDayBtn.addEventListener(MouseEvent.MOUSE_DOWN, vTines);
    engageBtn.addEventListener(MouseEvent.MOUSE_DOWN, engagements);
    weddingsBtn.addEventListener(MouseEvent.MOUSE_DOWN, weddings);
    birthsBtn.addEventListener(MouseEvent.MOUSE_DOWN, births);
    bDaysBtn.addEventListener(MouseEvent.MOUSE_DOWN, birthdays);
    graduBtn.addEventListener(MouseEvent.MOUSE_DOWN, graduations);
    annivBtn.addEventListener(MouseEvent.MOUSE_DOWN, anniversaries);
    spEventsBtn.addEventListener(MouseEvent.MOUSE_DOWN, specEvents);
    memorialsBtn.addEventListener(MouseEvent.MOUSE_DOWN, memorials);

  • How do you get wi fi on your i pod touch when your to far away from the router

    How do you get wi fi on your i pod touch when your to far away from the router

    You don't

  • Suddenly, system produces a "microsoft image writer," freezes, then crashes when I try to print from a web page. This is new, just past week or so.

    For the past week or two, when I desire to print from a web page or email and hit the "print" command, instead of my printer name the printer window displays 'microsoft document image writer." Then it asks me to save (in which case it appears in my documents) or print to file. Then, if it works, it produces a window with an image of the page. And once or twice, I can then print. But usually, it produces a blank screen, an endless hourglass, a "not responding" message, and then the blue screen of death.

    -> Problems printing web pages
    * http://kb.mozillazine.org/Problems_printing_web_pages
    -> [Firefox hangs]]
    * http://kb.mozillazine.org/Firefox_hangs
    Check and tell if its working.

  • When I copy say something from a web page how then can I paste it and where to ie pages/messages etc on my ipad

    when I copy say something from a web page how then can I paste it and where to ie pages/messages etc on my ipad

    You can paste it into any word processing program you have, evernotes as stated, the notes app, even into e-mail if you want.

Maybe you are looking for

  • Iphone wont restore after boot loop

    heres what happens i put the phone into recovery mode (with the home button and plugging cable in) because power button is broken, the connect to itunes screen shows and once in itunes i click restore then it says waiting for iphone, this is when the

  • Errors: REPAPI 26522 & PLS 00201

    Received these errors when trying to test replication. "REPAPI 26522:plsql rpc refresh context get failed." "PLS 00201: identifier sys.dbms_snap_repapi must be declared." Here's what I have done: I defined snapshot log on master ok. When I drag/drop

  • What third party plugs/synths do you use??

    I was using Reason as a Rewire device for awhile, still do if i'm working with older beats i've made, But I would much rather be able to have instruments within Logic. I actually don't really like the string section for Logic, Reason is much deeper,

  • Address book in Safari different then Mail

    WHEN I COMPOSE EMAIL VIA SAFARI I GET ACCESS TO MY EMAIL ADDRESS BOOK. WHEN I DO IT THROUGH "MAIL" THE ADDRESS BOOK IS DIFFERENT AND I CAN'T FIND OR IMOPRT MY EMAIL ADDRESS BOOK. IS THERE A WAY TO SEE THE SAME ONE VIA BOTH APPLICATIONS? THANKS GEOSOU

  • Anyone can explain the details about the tcode MMBE

    Dear All, When running in the tcode MMBE, we may seen many different kind of stock status under different column, for example consgt. ordered, stck..(plnt) and so on.. My question is that i would like to understand which are the steps, order types, o