Timer response type
Use the Timer response type to start and stop a timer attached to a form. To start the timer as soon as a form launches, use this response type with a StdFormPreDisplay event.
You can use timers to check and refresh collections automatically, or to perform other tasks that must be attended to automatically on a periodic basis.
This response type has two possible parameters:
- An
ACTION
(eitherStart
orStop
) - An
INTERVAL
, representing the amount of time that is to pass between "ticks" of the timer, in milliseconds.Note: For forms used in the web client, the minimum valid value is 5000 (milliseconds). Values less than this are automatically treated as 5000 in the web client.
You can set the INTERVAL
only if the
ACTION
is Start
. To change the interval, you must stop
and restart the timer.
Timers must be used in conjunction with a StdFormTimerTick event. Each time the timer "ticks", it triggers this event.
Note: When the form closes, the timer stops
automatically for that form. In the web client, the timer also stops whenever the form that
uses it loses the focus.