Fire a Code after a time interval

I am using form builder and want to display a message of a text item contents after a time a specific time interval.can any bosy tell me how to do that

write your code in when-timer-expired trigger and fire this trigger as you required.

Similar Messages

  • Io exception: Connection reset - after some time interval

    Hi,
    We are facing a problem in connection while implementing connection pooling using OracleDataSource .
    Application is running with out any issue if it is called continuously.
    If we call the application after some time interval, connection is being reset. We are able to get the connection instance but connection reset exception is thrown while calling callableStatement.execute().
    If application called after application restart it is working fine.This issue is happening only for the first few calls made after some time interval.(after 1 hr)
    After that call is proceeding without any issue.
    Environment Details
    Application is accessing 4 oracle databases and the versions are viz., 9.2.0.8,10.2.0.3,10.2.0.4 and 9.2.0.1.
    Driver : ojdbc14.jar
    App Server : tomcat
    jdk version: 1.5
    OracleDataSource is being used for connection pooling.
    propCache.setProperty("ConnectionWaitTimeout",10); // caching parms
    ods.setConnectionCachingEnabled(true);
    ods.setLoginTimeout(intLoginTimeout);
    propCache.setProperty("MinLimit","5");
    propCache.setProperty("MaxLimit", "20");
    propCache.setProperty("InitialLimit","5");
    propCache.setProperty("ValidateConnection", "true");
    propCache.setProperty("AbandonedConnectionTimeout", "10");
    The exception details are as follows
    java.sql.SQLException: Io exception: Connection reset
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
    at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:987)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1170)
    at oracle.jdbc.driver.OracleStatement.doScrollExecuteCommon(OracleStatement.java:4043)
    at oracle.jdbc.driver.OraclePreparedStatement.doScrollPstmtExecuteUpdate(OraclePreparedStatement.java:10826)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3337)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3445)
    at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4394)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
    at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:834)
    at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:640)
    at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1286)
    at java.lang.Thread.run(Unknown Source)
    Any suggestion to resolve this issue is greatly appreciated.
    Thanks.

    Hi,
    try to utilize OracleDataSource#setConnectionCacheProperties() with property InactivityTimeout equals to 1800 (30 minutes in seconds).

  • SA 540 drops wan connectivity after some time interval

    hello guys,
    I have problem.  after a certain period of time (ranging from 2 minutes to several hours) the unit keeps dropping the WAN connection, making the unit unaccessible from the WAN side. The strange thing is, that when the connection is dropped, the unit is perfectly accessible from the LAN side, the WAN LED is still on, status info shows the WAN link up, and packet trace shows broadcasted traffic on the WAN interface, so only the directed communication to and from the ISPs gateway (configured to fix IP) seems to be blocked for some reason. When this happens, then plugging the WAN cable to the Optional WAN port enables traffic again, but it is also dropped after some time, and then only power cycling the unit restores WAN connectivity.
    please suggest me as soon as possiblethat how to fix this problem?
    Awaiting for valuable reply.....

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • I cant use my fire fox continuously ,after some time its automatiocally restarted i update also but the problem not solved,pls give solution for that issues?

    hi
    when i enter into fire fox for 15 min no problem i can use after that its restarted, i update also,but the problem occur again.......
    i cant solve this problem, i have added many password, i cant make re install,

    What issue occurs after about 15 minutes? Do websites stop loading? Does Firefox crash?
    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • Method execution retry after a time interval

    Class A {
    public void doSomething() {
    // Step 1: Initialize variables
    // Step 2: ... do something else
    // Step 3: call method in the same class which creates connections to external resources.
    // e.g. Step 3 execution time is unknown... Step 3 tries to create JMS connection.
    // In some situations step 3 might take more time to create JMS connections.
    // Need to stop creating connections if it exceeds certain time and retry step 3 for couple of times and exit the application
    public class CreateJmsService implements Runnable{
         public void createConsumer() {
              System.out.println("Creating consumer");
              try {
                   Thread.sleep(2000);
              } catch (InterruptedException e) {               
                   e.printStackTrace();
              System.out.println("Created consumer");          
         @Override
         public void run() {
              System.out.println("Starting JMS configuration.....");
              // Timer start here
              createConsumer(); // stop executing this method if it takes more than 2000 milliseconds and retry for another 2 times
              // close/stop timer          
    Edited by: 945731 on Jul 30, 2012 10:13 AM

    945731 wrote:
    How do I stop executing the current thread and kill the processing thread and create a new thread to retry for certain number of times...You design the code, write it and test it. Standard developer tasks. If you can't do it and cannot do the research required to figure out how, there is something horribly wrong. If you're a novice there should be a senior you can turn to for guidance.
    Stop executing a thread: you interrupt threads to do that (with the interrupt() method). That does not magically work, thread code needs to be designed to be interruptable. Research on your part, a good book on Threads will surely help.
    Create new thread: well you already know how to do that
    Certain number of times: maintain an integer that keeps track of how many times you interrupted and restarted the thread
    With those three pieces of the puzzle you really must be able to put it all together yourself.

  • Some website opens automatically in a new tab with some time interval repeatedly

    Sometimes a specific website ie. " http://www.yourtest-india.com/cgi-bin/wingame.pl?partner_pk=8&wingame_pk=40&freetest_pk=10&SourceId=355&CreativeId=23885235&LineItemId=8914668&PublisherId=309257&SectionId=8433399&sub_id_postback=00005de1e959adfd24a71a545c7258e4a8e59 " opens repeatedly in new tab with some time interval and even if I close the new tab that has opened again this new tab opens after same time interval.
    This happens only when the firefox window is active or open. When the window is minimized no new tabs open. But once I switch to firefox new tab opens immediately with the same page as mentioned above.

    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • Fatch data from a table after a given time interval

    Hello
    I want to fetch date from a table after a fixed time interval is there any
    way to do it.
    thanks

    Not sure what you want. But maybe this helps.
    SELECT date+interval FROM atable;
    Also if you tell us more about the business case the answers could be more to the point.

  • I just brought a apple protection plan as my phone warranty is going to end in a day, when i am trying to enter the protection plan code and my phone serial no its showing an error message try after some time is there any solution to that?

    i just brought a apple protection plan as my phone warranty is going to end in a day, after entering the protection plan code and my phone serial no its showing an error message "technical error try after some time", is there any solution for that?
    As i need the warranty to extend for another year please help me regarding this issue.
    When i bought a new iphone5 in Inda after using it for three days lock button was not working properly and it was warranty claimed and exchanged from apple service center in India, for the same phone I want to extend the warranty but its showing a error message is there any solution?

    Here is some information on the applecare +:
    http://www.apple.com/support/products/iphone.html
    It appears that you have to buy the applecare within 30 days of buying your phone - you said that your phone warranty is almost over, so when did you buy it??? That could be the explanation for the error.

  • Changing images after time interval.

    Hi,
    I want to show images that am calling from xml file into flash, I want to show them each after a certain time interval, I want to do this in AS3 How it can be done?
    Thanks
    IceHero

    make use of Timer function
    var myTimer:Timer;
    //  timer_length=length_img;          //Total number of images in xml.
    and with each timer inteeval counter is increased by one to get the next image.
    Here is one sample.
    var xmlReq:URLRequest=new URLRequest("images.xml");
    var xmlLoader:URLLoader=new URLLoader();
    xmlLoader.load(xmlReq);
    xmlLoader.addEventListener(Event.COMPLETE,loadXML);
    function loadXML(e:Event)
        xml=new XML(e.target.data);
        length_img=xml.*.length();//Total no of images...
        //timer event is called on the COMPLETE event of the xml when the xml is loaded
        //then the timer event is called....
         timer();   
        loadImage();
      function timer()
        //to store the timer event.
         timer_length=length_img;
        myTimer=new Timer(7000,timer_length);
        //5000 means 5 sec delay and timer_length is the no of times this timer work.In this case it should work only up to the total no of images.Suppose       //  images are 12 in xml then timer will work 12 times.
        myTimer.addEventListener(TimerEvent.TIMER,timeLine);
        myTimer.start();
        function timeLine(e:TimerEvent):void
        //event listener of timer event.
        loadImage();
        counter=counter+1;
         function loadImage()
        //Loads the image by this function and various effects added here.
                urlImage=xml.image[counter].imgURL;
                var imgReq:URLRequest=new URLRequest(urlImage);
                //loads the image url and image in this request.
                imgLoader=new Loader();
                imgLoader.load(imgReq);
                //Loads the image in loader.
                mc_container.addChild(imgLoader);
                //loads the image in the mc_container movie.
                }//ends the load image function.

  • HT4528 how do I re-activate my phone after its been locked due to attempting an incorrect pass code too many times?

    how do I re-activate my phone after its been locked due to attempting an incorrect pass code too many times?

    Connect the iPod to its syncing computer and restore via iTunes.  If iTunes asks for the passcode and yu can't enter the passcode or you do not have the syncing computer, place the iPod in recovery mode and then restore. For recovery mode see:
    iPhone and iPod touch: Unable to update or restore

  • Fire fox fails to open after first time unless I reboot

    fire fox fails to open after 1 time unless I reboot

    Have you confirmed with 4D that their software is Leopard compatible? I recall reading a report back in late October that 4D hadn't certified their products as Leopard compatible.

  • Halt code after entering 3 times

     am using hp pavilion g6 and i got a system disabled code after entering administrator password or power on password 3 timesThe code I get is 71217365Please help me out

    Hi: Please read this post which should resolve your dilemma. http://h30434.www3.hp.com/t5/Notebook-Operating-Sy​​​​​​​​​​​​​​​​​​​​​​​​​stems-and-Software/System-​... Then... You can: 1. Use the unlock code you generated to enter the BIOS
    2. Disable all passwords that are enabled in the BIOS's security menu.
    3. If asked for current password - type the unlock code
    4. For new password, just press ENTER key
    5. Repeat the same for verify password column.

  • Time interval in Asset master record.

    Hi All,
    I am creating asset master record using AS01. Then I am doing intercompany transfer of asset via T Code ABT1N.
    If I view the asset time dependant data after this I am getting the following:
    1. The time interval mentioned is 01.01.1900 till 31.08.2007.
    2. When I add the furthur time interval I am getting the ABAP dump.
    Please help on this.

    Hi,
    When you look in the dump you see on the begin somwere of the dump
    > here you see the reason for the dump, perhaps there is field what can help you to solve the problem.
    You can have a look with the programmer and or create a message to SAP support.
    Paul

  • Fixed length time interval variable

    Hello experts,
    I would like to define a time interval variable between a start date (entered by the user) and end date which is exactly 12 periods after the start date (the system somehow calculates the end date = start date + 12).
    The same principle should be used for different periods such as day, week, month. For instance for a calendar day variable it should calculate the end date = start date + 12 days, for a calendar week start date = start date + 12 weeks etc.
    How such behaviour with a variable could be achieved ?
    Thanks in advance
    Rado

    Hi,
    Just create a variable ZCDATE of user exit type and code in the exit ZXRSRU01 to populate it.
    DATA: ZE_T_RANGE TYPE RSR_T_RANGESID WITH HEADER LINE.
    Current date
        when 'ZCDATE'.  " Your Variable
          IF I_STEP = 2.
            ZE_T_RANGE-SIGN    = 'I'.
            ZE_T_RANGE-OPT     = 'EQ'.
            ZE_T_RANGE-LOW     = SY-DATUM.
            APPEND ZE_T_RANGE TO E_T_RANGE.
            clear ZE_T_RANGE.
          ENDIF.
    Thanks,
    Debasish

  • Customer ##1 Enter a valid time interval error while generating customer BP

    Dear Experts,
    I am getting the following error when I am auto generating Customer while creating Business Partner in BP transaction code.
    Customer ##1: Enter a valid time interval
    Message no. CMD_API087
    Had anybody faced this problem?
    Regards
    Komal

    Hi,
    In Transaction 'BP', after values is put for BP name, Grouping & Create in BP role, there is a field for Validity period. Click on the icon to Create Validity period. This should resolve the issue.
    Regards,
    Nimesh

Maybe you are looking for