CalculationRegisterRecordSet.<Calculation register name>.Write

Syntax:

Write(<Replace>, <WriteOnly>, <WriteActualActionPeriod>, <WriteRecalculations>)

Parameters:

<Replace> (optional)

Type: Boolean.
Defines the replacement mode of the current records in accordance with the current filter settings (i.e. by record set recorder). If True, existing records will be deleted before saving. False - records will be appended to those already existing in the information base.
Default value: True.

<WriteOnly> (optional)

Type: Boolean.
Sets write mode for the set. True - set writing only; False - actual action period recalculating and recalculation records inputting.
By default, set writing entails action period recalculating (for calculation registers which support the action period) and recalculation records inputting (if necessary).
Attention! This parameter can be set to True only when writing a previously written record set where only resources or attributes have been changed. If any other record fields have been changed in the record set, write operation with the parameter set to True fails and error message is returned.
Default value: False.

<WriteActualActionPeriod> (optional)

Type: Boolean.
If the record set writing is executed with <WriteOnly> parameter set to False and this parameter set to False, then actual action period is not calculated on writing the record set.
Default value: True.

<WriteRecalculations> (optional)

Type: Boolean.
If the record set writing is executed with <WriteOnly> parameter set to False and this parameter set to False, then recalculations are not registered on writing the record set.
Default value: True.

Description:

Writes the record set to the database. Depending on the given parameter, records can be added or replaced.

Availability:

Server, thick client, external connection.

Note:

When called with <Replace> parameter set to False, the recordset is cleared after writing to the information base.

    

1C:Enterprise Developer's Community