Accumulation register CreateRecordSet.Filter

The 1C:Enterprise developers forum

People who like this:0Yes/0No
Active user
Rating: 2
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,

Be the first to know tips & trick on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.