S
S
stictt2019-07-10 11:39:33
1C
stictt, 2019-07-10 11:39:33

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");

How to work with a link?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2019-07-10
@stictt

In the form you do:
See the syntax help for more details on this method.

M
Matvey Seregin, 2019-07-17
@MaestroOlmer

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 question

Ask a Question

731 491 924 answers to any question