When-Timer-Expired goes back to form

Got a problem in my application where I have a timer on my for which requery's everytime it expires. However if I am in another application e.g. Windows Nt Explorer every time the timer expires control goes back to the form.
Does any one have any ideas??

Try closing Mail App in Multitask Window
1. Double tap the home button to bring up the multi-tasking view
2. Swipe up on the screenshot of the Mail app to close
3. The app will fly off the screen
4. Test Mail again

Similar Messages

  • Timer --what you type gets lost on other forms when timer expires

    I am using a timer that works fine on this one form. The problem lies you move to a different form that does not have a timer and start typing and if the timer fires at that time while you are typing the focus moves to the form with the timer but it appears that the other form is still there infront.But what you type gets lost at the moment the timer expires.
    I am using go_block on when timer expired form.
    Any good way t handle this ?

    I am using a timer that works fine on this one form. The problem lies you move to a different form that does not have a timer and start typing and if the timer fires at that time while you are typing the focus moves to the form with the timer but it appears that the other form is still there infront.But what you type gets lost at the moment the timer expires.
    I am using go_block on when timer expired form.
    Any good way t handle this ?

  • GO_FORM when TIMER-EXPIRED

    Just want to know if I am doing something wrong
    or if it's another feature of Forms. I have a
    GO_FORM within an IF statement in the (repeating)
    WHEN-TIMER-EXPIRED trigger. It all goes well until
    the IF statement evaluates to a value that makes
    GO_FORM the case, the repeating timer seems to go
    dead after GO_FORM switches the focus to the
    specified form. Any comments? Thanks in advance.

    Hi Eugeniy,
    The original WBP trigger has already the following code:
    go_item('bijz.click_datum');
    do_key('list_values');
    The section where copy ('0','GLOBAL.save_mouse_record'); is mentioned is part of the code that Metalink offered me, look at:
    Note 266535.1 How to call to a calender window against an unbound item via an LOV button.doc
    Best regards,
    Ronny.

  • When-timer-expired

    Hi everyone,
    This is my first time using this trigger and i dont really catch what to do to make it fire. Arwind advices me to use it to make the valus of the item blink. The way i see it it should work but i guess i'm missing something...could u plz help me find what i'm missing here.
    Here is the only code i have for the trigger.
    DECLARE
    id_item ITEM;
    timerid TIMER := FIND_TIMER('BLINK');
    BEGIN
    if :prix_en_vigueur is not null then
    /*--- Make the item blink ---*/
    id_item := find_item('PRIX_EN_VIGUEUR');
    set_timer(timerid, 1000, REPEAT);
    if get_item_property('id_item',DISPLAYED) = 'PROPERTY_TRUE' then
    set_item_property(Id_item,
    DISPLAYED,PROPERTY_FALSE);
    else
    set_item_property(Id_item, DISPLAYED,PROPERTY_TRUE);
    end if;
    end if;
    END;
    Does it have something to do with the set_timer or delete_timer and if so how should i use them.
    Thanx in advance for ur replies.
    null

    You have the when-timer-expired defined at form level. In it you should first have a call to get_application_property(TIMER_NAME), that returns the name of the timer that has made the trigger fire, depending on which you perform what you have to do under those circumstances.
    How to make it fire? In whatever trigger you find appropriate you call set_timer, that starts the countdown for the number of milisecs you specify that finally generates the "Timer-Expired" event which makes the trigger fire.
    Regards,
    BD

  • Regarding When-timer-expired trigger

    Hi,
    My requirement is to display time .From my understanding i think every time
    when-timer-expired shuttle between client and middle tier for this purpose for
    every expiry of time .This i feel degrades the performance.
    Is there any workaround available so that the database time is fetched for the first
    time and thereafter refreshing could takeplace in the client-side
    Thanks in advance
    regards,
    prabakaran.s

    Here is the code:
    package oracle.forms.fd;
    import java.awt.AWTEventMulticaster;
    import java.awt.Color;
    import java.awt.Cursor;
    import oracle.forms.handler.IHandler;
    import oracle.forms.properties.ID;
    import oracle.forms.ui.VTextField;
       * A PJC to have a textfield blinking
       * @author Francois Degrelle
       * @version 1.0
      public class BlinkTextField extends VTextField  implements Runnable
        public final static ID START        = ID.registerProperty("START"); 
        public final static ID STOP         = ID.registerProperty("STOP"); 
        public final static ID SETBLINKRATE = ID.registerProperty("SETBLINKRATE");   
        public final static ID SETFGCOLOR   = ID.registerProperty("SETFGCOLOR");   
        public final static ID SETBGCOLOR   = ID.registerProperty("SETBGCOLOR");       
        static Thread runner ;
        protected int seconds   = 400 ;  // milliseconds
        private Color  cdefFG   = null ; // default background color
        private Color  cdefBG   = null ; // default foreground color
        private Color  cFore    = null ; // blinking foreground color
        private Color  cBack    = null ; // blinking background color
        private boolean bSwitch = true ;
        private   IHandler  m_handler; 
        public BlinkTextField ()
           super();
        public void init(IHandler handler)
          m_handler = handler;
          super.init(handler);
          cdefFG = this.getForeground() ;
          cdefBG = this.getBackground() ;
         * switch color to simulate the blinking process
        public void run()
          Thread theThread = Thread.currentThread();
          while (runner == theThread)
            try{
            Thread.sleep(seconds);
            } catch (InterruptedException e) { }
            if(bSwitch)
              if(cBack != null) this.setBackground(cBack);
              if(cFore != null) this.setForeground(cFore);
            else
              this.setBackground(cdefBG);       
              this.setForeground(cdefFG);
            bSwitch = ! bSwitch ;
        private void startTimer()
          if (runner == null )
            runner = new Thread(this);
            runner.start();
        private static void stopTimer()
          if (runner != null )
            runner = null;
        public boolean setProperty(ID property, Object value)
          if (property == START)  // start the blinking
            startTimer() ;
            System.out.println("** Start **");
            return true;
          if (property == STOP)  // stop the blinking
            System.out.println("** Stop **");
            stopTimer() ;
            return true;
          else if (property == SETBLINKRATE)  // set the cursor blink rate
            int i = Integer.parseInt(value.toString());
            seconds=i;
            System.out.println("** SetRate="+seconds+ " miliseconds");
            return true;
          else if (property == SETFGCOLOR)  // set the foreground color
            cFore = getColor(value.toString()) ;
            System.out.println("** SetFGColor="+cFore);
            return true;
          else if (property == SETBGCOLOR)  // set the background color
            cBack = getColor(value.toString()) ;
            System.out.println("** SetBGColor="+cBack);
            return true;
          else
           return super.setProperty(property, value);
    // expects r,g,b values separated by commas 
    public Color getColor(String colourValue)
      try{     
        int r,g,b;     
        int rPos, gPos;     
        rPos = colourValue.indexOf(",");     
        gPos = colourValue.indexOf(",", rPos + 1);     
        if (rPos < 1 || gPos < 1 || gPos + 1 == colourValue.length()) {       
            throw new Exception("Invalid colour");
        r = Integer.parseInt(colourValue.substring(0, rPos));     
        g = Integer.parseInt(colourValue.substring(rPos + 1, gPos));     
        b = Integer.parseInt(colourValue.substring(gPos + 1));       
        if (r < 0 || r > 255 || g < 0 || g > 255 || b < 0 || b > 255) {       
           throw new Exception("Invalid colour");
        return new Color(r,g,b);
      catch(Exception e) {     
        return new Color(0,0,0);
    }Francois

  • When-Timer-Expired not firing if LOV is open

    In my form I have a when-timer-expired trigger that kicks the user out of the form if there is no activity for one minute. But if the LOV is open the when-timer-expired trigger is not firing.
    Thanks,

    yeah !
    if the form starts a db-function or a host-command or a lov - then the form isn't able to do something else parallel to this...
    e.g. :
    WHEN-BUTTON-PRESSED :
    IF show_lov () THEN
    END IF;
    if the lov works different, then you have parallel working program units. In this case :
    a WHEN-BUTTON-PRESSED and a WHEN-TIMER-EXPIRED
    and this is today impossible in Forms

  • Webutil demo problems - WHEN-TIMER-EXPIRED error

    Hi there,
    I have just installed the 10.1.2 forms no problems. I then downloaded the demo of webutil from OTN and cannot get it to run properly. Can anyone help.
    I initially had to rename the webutil.pll (i renamed to webutil_lib.pll as recommended in an earlier forum) file to overcome an initial error and now I can at least see the runtime canvas. I dropped and re-attached the attached libraray for this pll file (Is this all I have to do?)
    The problem is I immediately get the error FRM-40735:WHEN-TIMER-EXPIRED trigger raised unhandled exception ORA-06508 in the console. This error continues for every event I do that has a trigger associated, ie changing tabs or pressing buttons, the only difference in the error message is the trigger name.
    I can see the canvas and various items on the tab sheet but none of the triggers that refernce webutil appear to work.
    I presume I have missed something simple, possibly when I renamed the .pll file.
    Any ideas.
    Doug

    Dougo,
    I checked our bug database for this topic and couldn't find anything reported. Can you file a TAR with support to have them analyzing your problem. (metalink.oracle.com)
    Frank

  • WHEN TIME EXPIRED

    I NEED TO RUN WHEN-TIME-EXPIRED
    AFTER PRESS PTN
    BUT DONT KNOW HOW

    This sound like a Oracle Forms question.
    You might get more response in the designated forms forum here
    Forms

  • My machine grinds to a near halt when time machine is backing up

    My machine grinds to a near halt when time machine is backing up. Is there any way to prevent this?

    How much data is it backing-up? Are you making frequent changes to big files? Are you using any 3rd-party apps that store their data in one big file (like a database)? Entourage is one that works that way.
    If you're not sure what's getting backed-up, you might want to download the TimeTracker app, from www.charlessoft.com.
    It shows most of the files saved by TM for each backup (excluding some hidden/system files, etc.). Take a look at it for one of the problem backups, to see what's going on.
    If you see something you can't identify, post the name(s) here and we'll see if anybody is familiar with them.

  • When Time Machine is backing up, my computer is so slow that it is essentially useless.  Backups occur irregularly, and take a long time.

    When Time Machine is backing up, my computer is so slow that it is essentially useless.  Backups occur irregularly, and take a long time.  How do I get Time Machine to work properly?

    Hello,
    Have you verified both drives in Disk Utility?
    See if the Disk is issuing any S.M.A.R.T errors in Disk Utility...
    http://support.apple.com/kb/PH7029
    Open Activity Monitor in Applications>Utilities, select All Processes & sort on CPU%, any indications there?
    How much RAM & free space do you have also, click on the Memory & Disk Usage Tabs.
    Open Console in Utilities & see if there are any clues or repeating messages when this happens.
    In the Memory tab of Activity Monitor, are there a lot of Pageouts?

  • WHEN-TIMER-EXPIRED TRIGGER

    WHEN-TIMER-EXPIRED
    declare
         var number :=10;
         v_al char(3);
         v_al_ti date;
    begin
         for i in 1..var loop
              :control.showdate := TO_CHAR(SYSDATE,'DD-MONTH-YYYY');     
              :control.showtime := TO_CHAR(SYSDATE,'HH24-MI-SS AM');     
              select alarm, alert_date, alert_time
              into v_al, v_al_da, v_al_ti
              from remind
              where alarm='ON';
              if v_al = 'ON' AND
                   v_al_ti = to_char(sysdate,'HH24-MI-SS AM') AND
                   v_al_da = to_char(sysdate,'DD-MONTH-YYYY')then
                   message('alert is on ');
              end if;
              if var =9 then
              var:= var+1;
              end if;
         end loop;
    end;
    THE CLOCK WORK BUT THE FORMAT MASK GIVE ERROR.
    I WANT TO RAISE A MESSAGE WHEN AN REMINDER ENTRY HAVE ALARM = 'ON'
    AND DATE = SYSDATE
    AND TIME = SYSDATE.
    THE TABLE HAVE FOLLOWING COLUMNS.
    SQL> desc remind;
    Name Null? Type
    RE_ABOUT VARCHAR2(100)
    ALARM CHAR(3)
    ALERT_TIME DATE
    ALERT_DATE           DATE
    THANKS IN ADVANCE.
    REPLY ME ON MY EMAIL.
    MUHAMMAD NADEEM
    MARDAN (PAKISTAN)
    [email protected]
    +92-0301-8334434

    Hi Nadeem,
    Change these two lines of code:
    :control.showdate := TO_CHAR(SYSDATE,'DD-MONTH-YYYY');
    :control.showtime := TO_CHAR(SYSDATE,'HH24-MI-SS AM');
    Try with replace the above with select statement like below.
    select TO_CHAR(SYSDATE,'DD-MONTH-YYYY'), TO_CHAR(SYSDATE,'HH24-MI-SS AM') INTO :control.showdate, :control.showtime From dual;
    Cheers

  • My mouse becomes impaired when time capsule starts backing up (every hour); anyone hav a remedy?

    My mouse beccoommmmes impaired when time capsssule starts backing up (eevery hour). Is there a remedy for this?

    UPDATE:
    I think I've found a solution.... Though I'm a bit reluctant to post it already because I'd really like to see if it works over time... Anyway, here is the interesting post I found by Mr. Caliostro:
    ... sure, go into your Airport Utility application, inside Utilities inside Applications. Click on Manual Setup when your TC appears in the window. Click on the Wireless tab. You will find a pulldown menu there called Channel. Select your channel & Update your TC settings. I set mine to channel 1 to try it, & it made a tiny improvement. How close is your TC to your mac? Does the interference reduce if you ove further away? Perhaps swapping from 802.11g/n to 802.11n or vice-versa, may help? (depending if your setup can work on 11n-only). Perhaps switching from 2.5ghz to 5ghz or vice-versa may help? both 11n & 11g can work at 5ghz as well as 2.5ghz... Let me know how you go!
    I set the 5GHz channel to 48 and the 2.4GHz to 1. Of course I changed these settings completely randomly since I don't know anything about these things but it actually seems to work pretty fine! No more sluggish mouse during Time Capsule back ups!

  • When-timer-expired hit the cursor position

    Some of our forms sometimes have timers running, to monitor
    progress of this and that. We've found that if the timer
    expires when you're typing in a form field, there's a tendency
    for the cursor to momentarily move to the beginning of the field
    then jump back to roughly where it had been. If you're just
    typing away without paying attention, this can be messy.
    Specifically, I put a few '0' characters at the beginning of a
    large field, then hit '1' and let it go to autorepeat. When the
    trigger fires, the insert cursor goes to a wait cursor for a
    bit, then back. I'll find a few '1' characters at the beginning
    of the field, and the insert cursor is now pointing the same
    number of characters from the end of the field. My testing
    indicates that the more time spent in the trigger, the more
    likely the problem is to occur. Also, it happens more if
    you're in a different form than the one with the timer.
    does anyone know how to handle this situation
    i m using when_timer_expired trigger with folllowing code
    declare
    v_timer varchar2(40);
    begin
    v_timer:=get_application_Property(timer_name);
    if v_timer='TIMER_TIME' then
    :CONTROL.onscreen:=to_char(sysdate,'HH12:mi:ss AM');
    end if;
    end;

    You could use JDAPI to make bulk changes to your Forms ...
    Re: Reading items/blocks/LOVs in the Object Navigator
    h2. UPDATE:
    Take a look at metalink note 45615.1 - Focus And Timer Behavior In Multiple Form Applications
    It seems you need to keep destroying and recreating the timer as you navigate from Form to Form ..
    Edited by: Rodolfo Ferrari on Aug 20, 2009 6:26 PM

  • Hi I can't update my apps when I try to update it asks for password when used it goes back to update. I think I'm not alone and have tried changing date switching off signing out and in and rebooting. Is there a solution or do I need to take it in?

    I can't update my apps each time it asks for password when entered it goes straight back to update. I don't think I am alone in this. I have tried changing the date, rebooting, switching off and on signing out and nothing works. Does anyone know of a solution or will I have to take it to an apple shop. My misses has no trouble with her updates, they are both on iOS 6. Hope someone can help.

    Tried that just said cant connect to iTunes Store which was different.

  • TS3899 Iphone will not retain new pass word for Yahoo that is on my computer. Have reset 3 times and goes back to old pass word

    I changed my password on my computer a few weeks back. Since then my iphone 5s will not let me know when I have a new email. In order to get my emails I have to push the mail icon, wait for it to connect and check to see if there are any new emails. Upon doing this, my emails will come through. I went to the Apple store today and they tried putting in my new password on my iphone. When I left the store they had accomplished what I went in for. After getting home, I noticed I had not been receiving any email notices. Pressed email icon and there were 2 emails waiting to be opened. Checked password on iphone and it had reverted back to old password. I have deleted my Yahoo account 3 times, changed password and it still goes back to the old one. All this is quit frustrating since I don,t live in Chandler and have to travel 40 miles, one way, to see a Genius about the same problem.

    But it is I jsut can sync, back up files, or anything becuase its stuck at this screene and wont do execute when i click either of those button

Maybe you are looking for

  • Widgets in Leopard...?

    Hi Is it possible to make Widgets pages? as in 1 page is not enough for me... I have loads of widgets which are over lay on each other? is there a solution for that? thanks...

  • Installation Error error code: microsoft visual studio 2012 express prerequisites x64 - enu fatal installation error

    Here's the log of the installation error. https://www.dropbox.com/s/nn8ediy092s8ifu/dd_wdexpress_full_20150203124912.log?dl=0

  • SapScript in ECC 6.0

    Hello, Guys I'm having a doubt, I created a form SapScript in ECC 6.0 for direct printing of Tickets for F110, with a copy of the standard did J_1B_BOLETO_ITAU. But do not print the bar code. I tell you that the SapScript no longer works in version E

  • Audio issues in latest episode

    I have a season pass for My Little Ponies: Friendship is Magic, and up until now all of the episodes have been of a good quality, with no issues to report. The latest episode uploaded to the iTunes store, however, "A Dog and Pony Show," is of conside

  • Invalid alert ID

    Hello there, I have a form with alerts. I always use FIND_ALERT before SHOW_ALERT. Suppose a user updates a record and tries to exit the form, i have an alert that should ask " do you want to save changes". Here's my key exit code Declare Msg_Lvl Num