Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise – Business applications platform > Accumulation register CreateRecordSet.Filter

Forum

Search UsersRules
Accumulation register CreateRecordSet.Filter
#1
Active user
Points:: 0
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.

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

Profile
#2
Active user
Points:: 0
Joined:: Mar 10, 2017

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

Kind regards,
Alex

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.