9 Replies Latest reply: Mar 11, 2013 10:40 AM by CraigB RSS

    reg:timer

    Rajnish Chauhan
      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çois Degrelle
          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
            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
              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çois Degrelle
                But what would be the next values ? Can you give example of the value suite ?

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

                  it should reflect like 'abc' then 'xyz' then 'abc' .....
                  • 6. Re: reg:timer
                    François Degrelle
                    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
                      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
                        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
                          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...