This discussion is archived
9 Replies Latest reply: Mar 11, 2013 8:40 AM by CraigB RSS

reg:timer

Rajnish Chauhan Newbie
Currently Being Moderated
hi
i have text on the form.

now i want change the continuously on that test after one second.

like...ABC then XYZ ,,, it should reflect continuously

which code should i use on when_trigger_expiredl
  • 1. Re: reg:timer
    FrançoisDegrelle Oracle ACE
    Currently Being Moderated
    Hello,
    Your request is not clear. In the When-Timer-Expired trigger, you can access, then change the content of the text field.

    Francois
  • 2. Re: reg:timer
    Rajnish Chauhan Newbie
    Currently Being Moderated
    yes i want to change the text on text box on timer.

    like when form run a then b then c
  • 3. Re: reg:timer
    Rajnish Chauhan Newbie
    Currently Being Moderated
    like i have user

    on when_timer_expired trigger

    :txt_name := to_char('abc');
    :txt_name := to_char('xyz');

    but its display only 'xyz' after one second

    how to continue this like one after one.
  • 4. Re: reg:timer
    FrançoisDegrelle Oracle ACE
    Currently Being Moderated
    But what would be the next values ? Can you give example of the value suite ?

    Francois
  • 5. Re: reg:timer
    Rajnish Chauhan Newbie
    Currently Being Moderated
    if there is no next value then

    it should reflect like 'abc' then 'xyz' then 'abc' .....
  • 6. Re: reg:timer
    FrançoisDegrelle Oracle ACE
    Currently Being Moderated
    Sorry, I continue not to understand...
    Give example like step 1 -> values must be... step 2 -> values must be... step 3 -> values must be...

    Francois
  • 7. Re: reg:timer
    Rajnish Chauhan Newbie
    Currently Being Moderated
    like when form run

    it will be display 'abc' then on same text it should display 'xyz'

    then 'abc' then 'xyz' then 'abc'

    i dont want to reflecting same value it is not static.
  • 8. Re: reg:timer
    HamidHelal Guru
    Currently Being Moderated
    Rajnish Chauhan wrote:
    like when form run

    it will be display 'abc' then on same text it should display 'xyz'

    then 'abc' then 'xyz' then 'abc'

    i dont want to reflecting same value it is not static.
    Hi,
    Write following code at When-Timer-Expire trigger
     if :column_name='abc' then
     :column_name:='xyz';
    else :column_name='xyz' thn
     :column_name:='abc';
    end if;
    Hope it works..

    Hamid
  • 9. Re: reg:timer
    CraigB Guru
    Currently Being Moderated
    now i want change the continuously on that test after one second.
    like...ABC then XYZ ,,, it should reflect continuously >
    Where do these values come from?
    which code should i use on when_trigger_expiredl
    Before you can use the When-Timer-Expired() trigger, you have to first create a one second repeating timer (Create_Timer()) that will trigger the When-Timer-Expired() trigger.

    I agree with Francois...
    Give example like step 1 -> values must be... step 2 -> values must be... step 3 -> values must be...
    You need to give examples and more details about where the data comes from. Is the data in a table, are you randomly generating the data, etc.

    Also, you need to keep in mind that using a Timer like this is going to generate network traffic every second when your When-Timer-Expired() trigger executes. This could cause your form to appear slow. It will also change the location of your navigation cursor each time the Timer expires.

    Lastly, WE NEED TO KNOW what your Forms version is. You might be able to implement a Java Bean timer in your form that does not cause the network traffic, but you can only use a Java Bean if your form is web deployed! You might want to take a look at the following articles...Before posting on this forum please read, 10 Commandments for the OTN Forums Member, and How to ask questions the smart way.

    The point is, you should post enough information in your initial question for someone - who is not familiar with your issue - to be able to understand what you are asking. :)

    Craig...

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points