S
S
Sgr_A2021-03-03 10:54:45
1C
Sgr_A, 2021-03-03 10:54:45

What is the difference between client-server control transfer in Thick Client (Regular) and Thin Client modes?

Greetings.

In the module "General PurposeClientRetrip":

Функция ЦветСтиля(ИмяЦветаСтиля) Экспорт
  Возврат ОбщегоНазначенияВызовСервера.ЦветСтиля(ИмяЦветаСтиля);
КонецФункции


There respectively:
Функция ЦветСтиля(ИмяЦветаСтиля) Экспорт
  Возврат ЦветаСтиля[ИмяЦветаСтиля];
КонецФункции


In the thin client mode it works correctly, but in the thick client it gives a mutability error of the "Color" type. For myself, I want to know what are the differences in the transfer of control in such modes.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
VitalyChaikin, 2021-03-04
@VitalyChaikin

In a thin client - the code is executed directly on the Client
In a thick client - the same code is executed on the Server, the result of the function (packed in text form) * and transferred to the Client, at this moment the error you indicated appears (because it is not possible to pack a value of type Color)
To correct the situation, in the properties of the module you need to check the box Client (regular application)

D
Dmitry Kinash, 2021-04-11
@Dementor

It's not about management, it's about data types. You see the result.
You can get the same error in the same way if you pass a List of Values ​​- in a managed thin client everything is successfully transferred, and in a thick client - "attempt to transfer a mutable value".
Somewhere in the documentation, probably in small print, what types can be used in what modes ... But in practice, when you see such an error, then simply rewrite the work with the parameter to structures and arrays.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question