CalculationRegisterManager.<Calculation register name>.CreateRecordSet

Syntax:

CreateRecordSet()

Returned value:

Type: CalculationRegisterRecordSet.

Description:

Creates the calculation register record set.

Availability:

Server, thick client, external connection.

Note:

Created record set is empty.

Example:

// Execute the recalculation by defined list of physical persons
// Main charges
RegOfCharge = CalculationRegisters.MainChargesOrg;
RecordsSet = RegOfCharge.CreateRecordSet();
// set Filter
RecordsSet.Filter.Recorder.Value = Ref;
RecordsSet.Filter.PhysPerson.Use = True;
For 
Each PhysPerson In PhysPersons Do
    RecordsSet.Filter.PhysPerson.Value = PhysPerson;
    RecordsSet.Read();
    // calculate records
    CalculateRecordsOfRegister(RecordsSet); 
    RecordsSet.Write(True, True);
EndDo
;


    

1C:Enterprise Developer's Community