Back to questions
JuniorTheoryCommon
How many server calls does this procedure make if both methods are server ones?
&НаКлиенте
Процедура Рассчитать(Команда)
Для Сч = 1 По 3 Цикл
Объект.Сумма = Объект.Сумма + ЦенаНаСервере(Сч);
КонецЦикла;
ОбновитьНаСервере();
КонецПроцедуры4
- Counting server calls by the number of server methods: every call in the loop is a server call of its own
- Expecting the platform to merge the calls of one client procedure: each one goes to the server separately
- How do you rewrite the procedure so it makes one server call?
- Why does a server call inside a loop break the 1C standard?