I
I
Ilya Brazhnikov2017-05-07 02:05:29
1C
Ilya Brazhnikov, 2017-05-07 02:05:29

How to upload the results of a query over a COM connection to a tree of values ​​in 1C 8.3?

There is a request and an output in a tree of values.
91b2e6d53f6a409b963e2c72898d1927.png
If you execute the same query in the local database, there are no problems, it unloads it into the tree and displays it in the form.
If the same query, but without QueryResult Bypass . By Grouping By Hierarchy - uploads to the Value Table and also displays it on the form. But I need with groups, and here is an error:

Ошибка при вызове метода контекста (Выгрузить)
  Дерево = Запрос.Выполнить().Выгрузить(ОбходРезультатаЗапроса.ПоГруппировкамСИерархией); 
по причине:
Произошла исключительная ситуация (1C:Enterprise 8.3.9.1818): Несоответствие типов (параметр номер ‘1’)

Why is the tree not being unloaded with grouping traversal? How can this problem be solved?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kinash, 2017-05-07
@Dementor

The system enumeration BypassRequestResult should be used not from the current base/configuration/platform, but the one that exists at the second end of the COM connection. The same applies to the DocumentWriteMode enumeration and other system enumerations.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question