CalculationRegisterRecordSet.<Calculation register name>.BeforeWrite

Syntax:

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

Parameters:

<Cancel>

Type: Boolean.
Action execution cancel flag. If the parameter value is set to True in the body of the handler procedure, writing is not performed and the exception is raised.
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 before the record set is executed. The handler procedure is called after the recording transaction begins but before the beginning of writing the record set of the calculation register.

    

1C:Enterprise Developer's Community