ValueTreeRowCollection.FindRows

Syntax:

FindRows(<FilterParameters>, <IncludeSubordinates>)

Parameters:

<FilterParameters> (required)

Type: Structure.
Contains search criteria: the structure key defines the column to be searched, and the structure value defines the sought value.

<IncludeSubordinates> (optional)

Type: Boolean.
Defines whether the subordinate collections (if there are any) will also be searched. True - search will take place.
Default value: False.

Returned value:

Type: Array.
An array of value tree rows corresponding to the given search criteria.
Note. The array stores references to value tree rows, so when modifying rows in the tree, values in the array will also be changed.

Description:

Searches for rows in the collection of value tree rows according to the given search criteria.

Availability:

Server, thick client, external connection, Mobile application (server).

Note:

This method is effective for selecting non-unique values.

Example:

ParametersFilter = New Structure;
ParametersFilter.Insert("Costs", CurExpense);
FoundLines = ContentRows.FindRows(ParametersFilter);


    

1C:Enterprise Developer's Community