Accumulation register CreateRecordSet.Filter

If you wish to leave comments or ask questions, please log on or sign up.

The 1C:Enterprise developers forum

People who like this:0Yes/0No
Active user
Rating: 3
Joined: Sep 18, 2012

Hello everyone,
could you please tell me how can I get CreateRecordSet().Read() for choosen records of recorder and other measurements? I don't want to Read() all records of the recorder but only choosen ones. Field "User" below is measurement of the accumulation register but script gives an error: Field "User" was not found.

AccRecordSet = AccumulationRegisters.RegisterName.CreateRecordSet();
AccRecordSet.Filter.Recorder.Value = Recorder;
AccRecordSet.Filter.User.Value = User;

For Each Record In AccRecordSet Do
    //things to do

Thank you in advance for your help!

People who like this:0Yes/0No
Active user
Rating: 4
Joined: Mar 10, 2017
Company: Rufinor

Hello, you also can use 1c query to loop through the register records.

Kind regards,