Accumulation register CreateRecordSet.Filter

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Active user
Rating: 2
Joined: Sep 18, 2012
Company:

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.

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

For Each Record In AccRecordSet Do
    //things to do
EndDo;


Thank you in advance for your help!
Kris

 
#2
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,
Alex

 
Subscribe