Answer the question
In order to leave comments, you need to log in
What is the difference between client-server control transfer in Thick Client (Regular) and Thin Client modes?
Greetings.
In the module "General PurposeClientRetrip":
Функция ЦветСтиля(ИмяЦветаСтиля) Экспорт
Возврат ОбщегоНазначенияВызовСервера.ЦветСтиля(ИмяЦветаСтиля);
КонецФункции
Функция ЦветСтиля(ИмяЦветаСтиля) Экспорт
Возврат ЦветаСтиля[ИмяЦветаСтиля];
КонецФункции
Answer the question
In order to leave comments, you need to log in
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)
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 questionAsk a Question
731 491 924 answers to any question