Form.AttachIdleHandler

Syntax:

AttachIdleHandler(<ProcedureName>, <Interval>, <Single>)

Parameters:

<ProcedureName> (required)

Type: String.
Name of the procedure to be enabled as a standby handler.
The procedure must not contain any parameters.

<Interval> (required)

Type: Number.
Period (seconds) accurate to 1/10 of a seconds that has to elapse before the procedure is called (positive number). If the set value is less than 1, then the value of the third parameter should be True.

<Single> (optional)

Type: Boolean.
The flag of a single run of the standby handler.
True - specified standby handler will be run once.
Default value: False.

Description:

Enables the specified procedure as a standby handler. Procedure will be run as long as the system is on standby each time a defined period of time has elapsed.
During the temporary lock called by the LockApplication method or by the relevant Temporary Lock command the timeout handlers are not performed.

Availability:

Thick client.

Note:

The idle handler calling continues, until the form is closed or the DetachIdleHandler form method is called.

Example:

AttachIdleHandler("OnWait", 1);

See also:

Form, method DetachIdleHandler
Global context, method AttachIdleHandler

    

1C:Enterprise Developer's Community