AccumulationRegisterRecordSet.<Accumulation register name>.Write

Syntax:

Write(<Replace>)

Parameters:

<Replace> (optional)

Type: Boolean.
Determines existing record replacement mode in accordance with current filter settings. 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:

You can use it to write accumulation register record set to the database. Depending on the parameter passed, records could be added or replaced.

Availability:

Server, thick client, external connection, Mobile application (server).

Note:

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

Example:

// Clear documents records, if it was posted
If Posted Then
    Reg = AccumulationRegisters.OrdersToSuppliers;
    OrdersToSuppliersSet  = Reg.CreateRecordSet();
    OrdersToSuppliersSet.Filter.Recorder.Set(Ref);
    OrdersToSuppliersSet.Write();
EndIf
;


    

1C:Enterprise Developer's Community