Wait a specified period of time

I have a button on a form and when the user clicks it, I want to wait a specified number of seconds and then continue with a javascript.
What the best way to do this?
All suggestions appreciated.

Acrobat has a setTimeOut function that will execute an AcroForm command in the future. Here is the syntax for it:
var  
test = app.setTimeOut("app.alert('This is a test....')", 2000);
The command needs to be an Acroform command and the 2000 is the time to wait (in milliseconds). You will not want to execute more than one command so you may want to put your script on an invisible button then execute like this:
var  test = app.setTimeOut("xfa.form.form1.Page1.Button2.execEvent('click')", 2000)
Note that all of your subforms in the path to the button must be named!
Paul

Similar Messages

  • How do I set my mail folders to keep items saved there indefinitely while only keeping mail in my active mailbox for a specified period of time?

    How do I set my mail folders to keep mail saved there available indefinitely while only keeping active mail in my mailbox for a specified period of time?

    There is no time limit in Firefox 4+ versions for the history.<br />
    Firefox determines automatically how many pages can be kept without affecting the performance.<br />
    You can see the current value via the reads-only pref places.history.expiration.transient_max_pages on the about:config page.
    See:
    * http://blog.bonardo.net/2010/01/20/places-got-async-expiration
    If you lose the history then make sure that you do not use Clear Recent History to clear the browsing history.<br />
    Also make sure that you do not have cleanup software that might clean up files in the Firefox Profile Folder.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *Firefox > Preferences > Privacy : History: [X] Clear history when Firefox closes > Settings
    *https://support.mozilla.org/kb/Clear+Recent+History

  • Can I make a function wait for a period of time?

    Hey everyone
    I just wanted some idea's on how best to tackle this problem
    in actionscript.
    All I want is that when a button is pressed it fades out the
    current page and then fades in the new page to be displayed. How
    ever when trying to fade out the current page i doesn't because it
    goes to the label and starts to play but the next part of the
    script tells it to go straight to the label to load the new page.
    Does anyone have a clever way of making it wait till the current
    page is faded out?
    If worse comes to worse can I just make it wait a set period
    of time before fading in the new page?
    Ive attached a bit of the current code and comment it with
    where the current page is faded out.
    Thanks in advance for any help
    Gaunt

    What I'm struggling to get my head round though is how to I
    get it to know when the fade out code is finished?
    Because the way I have programmed it at the moment,
    everything is done from one action script that registers the last
    viewed page and then when the new page is clicked it will just call
    gotoAndPlay to the point where my pages_mc will play fading out the
    current page, then after that it will call gotoAndPlay on the
    pages_mc to play the fade in of the new page.
    I just dont see how I call the second gotoAndPlay function
    once I know the first gotoAndPlay function has ended.
    Does that make any sense or am I just being stupid??
    Thanks for the help again though kglad

  • Having program wait for a period of time

    I have a program that I am creating that will need to paint something to the panel every few seconds. I have some code like so:
    public void paintBar(Graphics g, Graphics2D g2)
              for(int i = 0; i < 325; i++)
                   //draw a rectangle
                   double leftX = 36;
                   double topY = 76;
                   double width = i;
                   double height = 48;
                   double test = 100;
                   Rectangle2D rect = new Rectangle2D.Double(leftX, topY, width, height);
                   g2.setPaint(Color.yellow);
                   g2.fill(rect); //fill rectangle with color
                   g2.setPaint(new Color(204, 204, 153)); //change paint to background color for erase
                   eraseMessage(g);
                   calculatePercentage(i);
                   g2.setPaint(Color.black); //change paint color back to black for message
                   printMessage(g);
    //NEED TO WAIT HERE FOR A PERIOD OF TIME
    //THEN CONTINUE WITH LOOP.
    The problem that I am having is that I tried to use different wait() meathods and it seems to get to the wait meathod and just freeze. The painting is never done until the wait command is complete and then the all of the painting is totally finished. I never see it progressing.
    Any ideas?
    Thanks

    You could use a scheduled event...
    public void run() {
         Timer timer = new Timer(false);          // Create Timer
         class Refresh extends java.util.TimerTask {     
              // Create repaint event
              public void run(){repaint();}
         timer.schedule(new Refresh(),0,10);     // Schedule repaint
    }Call this when you run your program, and place all your paint and update methods into a paint(graphics g) method.
    Then, the timer will continuously run repaint repeatedly.
    You can then insert a single event timer (i don't know how off hand, but they are in the API under Timer events), that kills the origional event timer after X ammount of time.

  • Xfce - Display doesn't switch off after specified period of time.

    I have strange problem with power manager. When I set switch display off when computer is in-active it sometimes work and sometimes not. I've noticed that it works for some period of time right after it was set( eg. I set it to switch display off after 5 minutes, so it will work once).
    Problem started to appear after I installed xscreensaver. I disabled power managing from xscreensaver but it didn't helped.
    Any ideas what it might be, or where should I look for reson?

    Hello,
    I had this problem before and after installing xscreensaver. In the end I disabled monitor contol in power manager (and left power manager to manage the hard drive) and enabled monitor control in xscreensaver. It works fine for me. I'm using a macbook 7,1 with Arch 3.15.5-2 but have had my set up like this for a while now.
    Hope that helps.

  • Can I make PDFs expire after a specified period of time?

    I found some older articles elsewhere, but they are fairly dated.
    Is it still possible to generate, created etc. PDF's and specify a time period that it would then expire?
    SO PDF1 is set to expire in 1month, PDF2 is set to expire in 6 weeks etc.
    Thanks for the help.

    Hi boldycreative,
    I believe you can do that using some JavaScript, as outlined on this page: Basic Document Level (Document Open) Scripts.
    But, it can be easily disabled by somebody who knows JavaScript.
    Best,
    Sara

  • Can an account be deactivated after a specified period of time?

    Hi,
    I have a requirement to make the accounts of Contractors expire after 90days.
    Is it possible to do it by configuring rules or some other way in OIM?
    Any help would be highly appreciated.
    Thanks

    There is an end date on the USR form. If you want to expire the contractor accounts after 90 days just set the end date to ($today+90 days) on account creation.
    I would suggest checking with the business if they need a contractor keep alive feature where someone, i.e. the contractors manager, can extend the life time. You will probably also need some kind of reminder functionality, i.e. one email sent out a few days before termination.
    Hope this helps
    /M

  • Schedule a task for a given period of time

    Hi,
    any body has an idea how to schedule a task for a specified period of time. e.g A program keeps on asking for your name to be input for an hour and then start doing something else?
    /bob

    hi friend,
    Why don't you try using a TIMER. Try using this code
    Timer timer = new Timer((TIMER), new ActionListener()
         public void actionPerformed(ActionEvent ae)
    // perform your task here...
    timer.setInitialDelay(TIMER);
    timer.setRepeats(true);
    timer.start();
    I think this will work fine.
    Bye,
    Ravi.

  • Possible loop deadline monitoring for a period of time?

    Hi All,
    Here is our scenario.. We have a task sent to the managers inbox with deadline monitoring on it.  If the manager does not action this task, we set this task to obsolete and then we want to send a reminder email every day until the manager performs the required action.
    So the problem.. originally this email was to be a task but the loop would not work with the task as it's waiting on action from the user.  We changed this task to an email and it looped as expected however the only way I could think to put a wait for a period of time before another email is sent is by actually counting down the time in a method.
    However, the problem with this is that wf-batch is locking the worklfow so it can never complete, even if the event to complete the workflow is triggered.  wf-batch has it locked so the workflow can never complete, so it loops infinitely.
    So my question.. is it possible to repeatedly send notifications to a manager at specifically defined time intervals without locking the workflow?
    Below is how the workflow currently looks:
    Any guidance on this would be most gratefully received!
    Thanks in advance,
    Liz.

    Hi Liz
    in your wait step, do not count down the time.
    Instead keep the method as a dummy method with no code.
    In the wait step, use the deadline monitoring - Requested Start - set it to current date + 1 day
    The step will start 1 day after 'today' , execute nothing in Dummy method and then go on to the mail step
    I am sure that the deadline monitoring job is running because "Latest End" of the first task is executed in your system. So the same job will take care of Requested Start of the wait step.
    regards,
    Modak

  • My Macbook Pro ran out of battery last night and wouldn't turn back on even when connected to power for a period of time. However, when I woke up, it did turn on. Is there a reason this happened and should I get it looked at?

    Last night, I was watching something on my Macbook Pro and it died (out of battery). I went to plug it in and waited a couple of minutes to try and start it back up. However, when I connected the power source the light was green, which could not have been the case since I know 100% it was out of battery. I proceeded to hold the start button for a long period of time, but my computer made no noise and refused to turn on - it looked like for all intensive purposes it was dead. I left it alone overnight praying that it would be alright in the morning and luckily, when I opened the computer this morning it was restarted and fine. I'm concerned because I've had this happen to me a couple of times and while it always turns back on, I feel like there is a bigger issue that I need to get addressed. Can anyone help me with this? Any ideas? Thank you!

    Apple Does Not recommend that. Please Read.
    http://support.apple.com/kb/HT1490
    From that article
    "Portables with built-in batteries"
    Current Apple portable computer batteries are pre-calibrated and do not require the calibration procedure outlined in this article. These computers use batteries that should be replaced only by an Apple Authorized Service Provider.
    MacBook 
    MacBook (13-inch, Late 2009) and later
    MacBook Air
    MacBook Air (all models)
    MacBook Pro
    MacBook Pro with Retina display (all models)
    MacBook Pro (13-inch, Mid 2009) and later
    MacBook Pro (15-inch, Mid 2009) and later
    MacBook Pro (17-inch, Early 2009) and later
    Thanks.
    Allan Mac wrote:
    Apple recommend calibrating the battery when you buy a new Macbook and then every few months, or monthly if it used on mains all the time. This, as Apple says is to keep the battery operating at maximum efficiency. When the battery discharges and shuts the macbook down, it still has reserve power for a good number of hours. There is also a logic board battery to hold various settings.
    I rather think I will take Apples advice on using their equipment not yours, but I would be intrigued to discover what is it you know that Apple doesnt about its batteries?
    Allan

  • In windows 8, web page buttons stop working after a period of time.

    After purchasing a new laptop with Windows 8, I installed Firefox v21. After it runs for a period of time, buttons on web pages seem to quit working and also some drop down menus. Only fix seems to be to clear history cache and cookies and restart Firefox. It will work for a while, then I have to go through this process again.
    Any ideas?

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • JE - Hangs after a period of time.

    Hi,
    I am relatively new to the world of Berkeley DB so please forgive my seemingly meandering request for help.
    I am writing an application which requires 8 hashtable or map structures. These data structures are prohibitively large and thus I require disk access. Persistence is not an actual requirement of the system, merely that the hashtable structures be arbitrarily scalable. The system I am running is single threaded, reading from a file and storing certain key/value pairs which are continuously read and infrequently updated (once off file analysis).
    I have afforded 3G of heapspace to the system and given seven of the hashtables 5% cache size, and a more frequently accessed hashtable 25% cache.
    After a given period of time, my application slows from processing approximately 2M input lines per minute to a single input line consistently every five minutes. This has continued for a number of hours. The time is not spent in the read or write methods of the hashtables (calls to which are in single figures) and is not used up by other parts of the code (I have tested the code without the hashtable features and it scales linearly: no slow down). Also, I have checked the garbage collection and it is not a problem with only minor collections running very quickly. CPU usage is minimal.
    My question is simply, where is the time being spent? Also can anyone suggest a better configuration? I just want 8 simple hashtables that overflow onto disk as heap space requires. Performance is so bad, I question the utility of tweaking but instead would hope that someone points out any glaring mistakes I have made in my implementation.
    The sizes of the hashtables at slow down are as follows:
    299462, 174978, 3543871, 304504, 1173250, 557360, 1859511 (5% cache)
    50429 (25% cache)
    Key size is about 40 bytes. Value size is somewhere in the low hundreds of bytes range.
    Version is je-3.2.76
    The following is my constructor... No changes are made to the database or environment setup outside of this. The only other interaction with the databases are through simple get() put() methods.
    public PersistantHashtable(String rootDir, int cachePercent, Class c) throws IOException, DatabaseException {
    DatabaseConfig dbConfig = new DatabaseConfig();
    dbConfig.setTransactional(false);
    dbConfig.setAllowCreate(true);
    dbConfig.setDeferredWrite(true);
    Database catalogDb = env.openDatabase(null, "catalog", dbConfig);
    ClassCatalog catalog = new StoredClassCatalog(catalogDb);
    SerialBinding keyBinding = new SerialBinding(catalog, Node.class);
    SerialBinding dataBinding = new SerialBinding(catalog, c);
    _db = env.openDatabase(null, name, dbConfig);
    ht = new StoredMap(db, keyBinding, dataBinding, true);
    Some typical garbage collection output:
    [GC 2906686K->2067991K(3040896K), 0.0108480 secs]
    [GC 2906903K->2067724K(3040896K), 0.0106010 secs]
    Thanks for your time. Hope you can help ;).

    Thanks both for your time. I suppose my first direct
    question is whether or not it is advisable from a
    performance point of view to re-use the same
    environment for each of the eight database
    structures?Yes, the normal and best performing choice is to have a single environment for all databases.
    Secondly, can anyone provide any insights into
    whether I can expect more reliable performance from a
    StoredMap or StoredSortedMap? I would expect that the
    former is based on a HTree implementation and the
    latter a BTree. I only need the functionality of the
    former, but would be happy to use whichever in
    anyone's experience is the more reliable.JE only provides a Btree. The StoredMap and StoredSortedMap have the same underlying storage -- both are in fact sorted since a Btree is always used.
    My third question is as to whether the cache percent
    parameter is reasonably well behaved and implemented
    using strong references, or whether it still relies
    on soft/weak references to be reclaimed by garbage
    collection. Previous incarnations of the code got
    hammered by garbage collection, so I would almost
    prefer a system with little or no cache as opposed to
    one with high object churn that hammers performance
    because of garbage collection.The JE cache uses strong references. No weak/soft refs are used.
    On the topic of using top to identify the
    problem, I have found that WA is very high during the
    slowdown, while CPU is extremely low. Thus, the wait
    time for IO operation is very high. I have also
    noticed that the slowdown also occurs earlier in the
    file analysis, with irregular pauses earlier in the
    job becoming more frequent as the job progresses. My
    final question is: what operation is being triggered
    in the database at these points in time? Are some
    clean-up process running on the database when it
    believes it to be idle and would it be
    possible/advisable to turn it off?What is your JE cache size? I suspect it's much too small for what you're doing.
    I will run some env.getStats(..) and see if I can
    find out anything more.Please do print out the env stats after the slowdown occurs and post them.
    Thanks,
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Sql query - Selecting last recorded values for each date in specified period

    Hello,
    Can someone please help me with my problem.
    I'm trying to get last recorded balance for each day for specific box (1 or 2) in specified period of days from ms access database using ADOTool.
    I'm trying to get that information with SQL query but so far unsuccessfully...  
    My table looks like this:
    Table name: TestTable
    Date Time Location Box Balance
    20.10.2014. 06:00:00 1 1 345
    20.10.2014. 12:00:00 1 1 7356
    20.10.2014. 18:45:00 1 1 5678
    20.10.2014. 23:54:00 1 1 9845
    20.10.2014. 06:00:02 1 2 35
    20.10.2014. 12:00:04 1 2 756
    20.10.2014. 18:45:06 1 2 578
    20.10.2014. 23:54:10 1 2 845
    21.10.2014. 06:00:00 1 1 34
    21.10.2014. 12:05:03 1 1 5789
    21.10.2014. 15:00:34 1 1 1237
    21.10.2014. 06:00:00 1 2 374
    21.10.2014. 12:05:03 1 2 54789
    21.10.2014. 15:00:34 1 2 13237
    22.10.2014. 06:00:00 1 1 8562
    22.10.2014. 10:00:00 1 1 1234
    22.10.2014. 17:03:45 1 1 3415
    22.10.2014. 22:00:00 1 1 6742
    22.10.2014. 06:00:05 1 2 562
    22.10.2014. 10:00:16 1 2 123
    22.10.2014. 17:03:50 1 2 415
    22.10.2014. 22:00:10 1 2 642
    23.10.2014. 06:00:00 1 1 9876
    23.10.2014. 09:13:00 1 1 223
    23.10.2014. 13:50:17 1 1 7768
    23.10.2014. 19:47:40 1 1 3456
    23.10.2014. 21:30:00 1 1 789
    23.10.2014. 23:57:12 1 1 25
    23.10.2014. 06:00:07 1 2 976
    23.10.2014. 09:13:45 1 2 223
    23.10.2014. 13:50:40 1 2 78
    23.10.2014. 19:47:55 1 2 346
    23.10.2014. 21:30:03 1 2 89
    23.10.2014. 23:57:18 1 2 25
    24.10.2014. 06:00:55 1 1 346
    24.10.2014. 12:30:22 1 1 8329
    24.10.2014. 23:50:19 1 1 2225
    24.10.2014. 06:01:00 1 2 3546
    24.10.2014. 12:30:26 1 2 89
    24.10.2014. 23:51:10 1 2 25
    Let's say the period is 21.10.2014. - 23.10.2014. and I want to get last recorded balance for box 1. for each day. The result should look like this:
    Date Time Location Box Balance
    21.10.2014. 15:00:34 1 1 1237
    22.10.2014. 22:00:00 1 1 6742
    23.10.2014. 23:57:12 1 1 25
    So far I've managed to write a query that gives me balance for ONLY ONE date (date with highest time in whole table), but I need balance for EVERY date in specific period.
    My incorrect code (didn't manage to implement "BETWEEN" for dates...):
    SELECT TestTable.[Date], TestTable.[Time], TestTable.[Location], TestTable.[Box], TestTable.[Balance]
    FROM TestTable
    WHERE Time=(SELECT MAX(Time)
    FROM TestTable
    WHERE Location=1 AND Box=1 );
    Tnx!
    Solved!
    Go to Solution.

    For loop
    following query keep day (here 24 in below query) Variable from ( 1 to 28-29/30/31 as per month)
    SELECT TOP 1 TestTable.[Date], TestTable.[Time], TestTable.[Location], TestTable.[Box], TestTable.[Balance]
    FROM Test Table.
    WHERE  Time=(SELECT MAX(Time) FROM TestTable WHERE Location=1 AND Box=1 )
    AND DATE = "2014-10-24";
    PBP (CLAD)
    Labview 6.1 - 2014
    KUDOS ARE WELCOMED.
    If your problem get solved then mark as solution.

  • Im on wifi but sometimes when i try and send imessages it wont let me for a period of time why?

    Im on wifi but sometimes when i try and send imessages it wont let me for a period of time why?

    If not thsi:
    iOS: Wi-Fi or Bluetooth settings grayed out or dim
    One user reported that placing the iPod in the freezer fixed the problem. A trick that works frequently with iPhones:
    Settings > AirPlane Mode ON, Do Not Disturb ON
    Power down and wait 5-10 minutes
    Power up
    Settings > AirPlane Mode OFF, Do Not Disturb OFF
    If not successful, an appointment at the Genius Bar of an Apple store is usually in order.
    Apple Retail Store - Genius Bar
    Then
    Does the iOS device connect to other networks? If yes that tend to indicate a problem with your network.
    Does the iOS device see the network?
    Any error messages?
    Do other devices now connect?
    Did the iOS device connect before?
    Try the following to rule out a software problem:                
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on your router
    .- Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - Wi-Fi: Unable to connect to an 802.11n Wi-Fi network      
    - iOS: Recommended settings for Wi-Fi routers and access points
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    If still problem and it does not connect to any networks make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar

  • No of RFC connections for a period of time

    Dear all,
    Is there any possibility to find the number of RFC connections hit to a server  over a certain period of time?
    I could not find any more details using AL08 since it gives the cumulative users rather than specific user type.
    Regards,
    Kumar
    Edited by: Anees Qureshy on Jun 16, 2010 1:43 PM

    Ya i have checked under that location.
    But It will give the total no of calls that have been made.So if we assume 20 calls made,then im sure it does not imply that 20 connections have been made.
    We have enabled a max of 2000 connections at any time.
    But the number it is showing is in lakhs..I guess that is no of cumulative rfc calls made.
    I still wait for a suitable reply.

Maybe you are looking for

  • How to remove a node from XMLList

    How to remove a node from XMLList I want remove the first node from XMLList and how to get the combobox all values string: <data> <value>2</value> </date> <data> <value>5</value> </date> <data> <value>8</value> </date> I need a string whit value "2,5

  • Answers to these performance tuning questions 9i

    what are the answers to the below questions ?? 367. You have used the ALTER command to set the DB_CACHE_ADVICE parameter to READY. What is now happening in the instance? A. Memory has been allocated in the shared pool for cache advice buffers. B. CPU

  • Finding IOS Versions of Active Sync Devices

    Hi We have our iPhones synchronized with Active Sync (Exchange). If I make a query Exchange will give a list with the devices. For example: Apple-iPhone3C1/801.400 We have a lot of different iPhone's 3g, 4g in our environment and I'd like to have a l

  • Mapping and designing COA

    Hi friends, Can anyone please tell me what does someone mean when he say designing COA. Please share some knowledge on difining ,developing ,mapping COA interfaces with legacy systems. Thanks

  • Using Oracle after install without Admin rights -- Possible?

    We are upgrading our company to Windows 7. Clearly, the best practice is to remove admin rights from users. I see lots of posts on inability to install Oracle without admin rights. That makes sense. Once installed though, we are hitting errors simply