Answer the question
In order to leave comments, you need to log in
How to work with a form in Background Tasks 1C?
Good day to all, I want to work in background tasks with a form and create / delete elements to create some magic, but it doesn’t work out very well, I try to transfer a link to the form to background tasks, I get a serialization error, since it is not supported. I'm trying to figure out how to work in this format. Please help
ArrayParameters = New Array(1);
ArrayParameters[0] = ThisForm;
Key = New UniqueIdentifier;
BackgroundTasks.Run("ModuleTest.BackgroundRunFillingButtons", ArrayParameters, Key, "Keck");
Answer the question
In order to leave comments, you need to log in
In the form you do:
See the syntax help for more details on this method.
You cannot pass a form as a background job parameter.
You need to pass data that the platform can serialize. It can be a reference to database objects, primitive types (string, number, date, boolean), arrays, structures, tables of values, etc. For more information about what types are serialized, see the syntax helper.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question