CalculationRegisterRecordSet.<Calculation register name>.OnWrite

Syntax:

OnWrite(<Cancel>, <Replacing>, <WriteOnly>, <WriteActualActionPeriod>, <WriteRecalculations>)

Parameters:

<Cancel>

Type: Boolean.
Action execution cancel flag.
Default value: False.

<Replacing>

Type: Boolean.
Set write mode.
True - the set records in the database are replaced by writing.
False - the current record set is added to the database by writing.

<WriteOnly>

Type: Boolean.
Indicates that only the set writing takes place without the actual action period recalculating and recalculations updating.

<WriteActualActionPeriod>

Type: Boolean.
Identifies, that the calculating of the actual action period is executed on writing the record set.
Parameter analysis makes sense only in case if <WriteOnly> handler parameter is set to False.

<WriteRecalculations>

Type: Boolean.
Identifies, that register recalculations are written when record set is written.
Parameter analysis makes sense only in case if <WriteOnly> parameter of handler is set to False.

Description:

Occurs when the object writing is executed. A handler procedure is called after the object is written in the database but before the writing transaction is completed.

    

1C:Enterprise Developer's Community