RecalculationRecordSet.<Recalculation name>.Write

Syntax:

Write(<Replace>)

Parameters:

<Replace> (optional)

Type: Boolean.
Defines the replacement mode of the current records in accordance with the current filtering settings (i.e. by recalculation object). 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.

Description:

Writes the record set to the database. Depending on the given parameter, records can be added or replaced.
If you specify the replacement, then all existing records will be deleted before writing new records in accordance with the current filtering settings (i.e. by recalculation object).

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.

Example:

Registr = CalculationRegisters.FocalChargesOrg;
Recalculation = Registr.Recalculations.Recalculation;

// clear the record set
RecordsSet = Recalculation.CreateRecordSet();
RecordsSet.Filter.RecalculationObject.Value = DocRow.Document;
RecordsSet.Write();


    

1C:Enterprise Developer's Community