Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise – Business applications platform > Very slow change of tabular section rows

Forum

Search UsersRules
Very slow change of tabular section rows
#1
Active user
Points:: 0
Joined:: Sep 27, 2011

Hello!
I made a group row changing command, it works fine on my local machine, but it works very slow in Web Client, here is the code:

Code
&AtClient
Procedure ResetQuantity(Command)
   For Each Row In Object.List Do
      Row.Quantity = GetDefaultQuantity(Row.Item);
   EndDo;
EndProcedure

&AtServer
Function GetDefaultQuantity(Item)
   Return Item.DefaultQuantity;
EndFunction

Profile
#2
Just came
Points:: 7
Joined:: Mar 15, 2012

You request server in cycle. Try to plase cycle in server function.

Profile
#3
Just came
Points:: 7
Joined:: Mar 15, 2012

Or use client only.

Profile
#4
Active user
Points:: 0
Joined:: Sep 27, 2011

Sounds reasonable, thanks, Mikhail!

Profile
#5
Just came
Points:: 0
Joined:: Apr 18, 2012

Instead of &AtServer use &AtServerNoContext

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.