F
F
foonfyrick2022-01-04 18:16:59
1C
foonfyrick, 2022-01-04 18:16:59

List of Values, search by value if the type of the value being searched is composite?

I have a composite type in the tabular part (link, string), and there is a function in which I get all the values ​​added to the Directory, how to find matches between the values ​​of the directory and the property of the tabular section?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
Konstantin, 2022-01-04
@fosihas

1c.sobel.ru/prostoi_primer.htm#75

K
Kirill Kopitsa, 2022-01-07
@Kir_K

I'll try to clarify a bit if I understood you correctly.
You just need to pull out the matches. To do this, you can unload the column from the PM as an array, something like this
ТЧ.ВыгрузитьКолонку(ИмяКолонки);
. Then pass this array as a parameter to the request that receives all the values ​​of the directory. And already there, in the request, using the condition "Catalog SelectedIn Request. Reference In (& ArrayFrom PM)" to select only those that match.

D
Dmitry Kinash, 2022-01-08
@Dementor

For the function of searching by value in the list of values, it does not matter how many types are in the composite type of an attribute of some document. The search by value occurs by the full match of the value. If the value is already in the ValueList, then the output is True, otherwise it is False.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question