Filter.Add
Syntax:
Parameters:
<Description> (required)
Description of the filter element as the name of an available field or as a full path.
For example, "Counteragent.Code", in which "Counteragent" is one of the fields available for filtering.
<Name> (optional)
Filter item name. If the parameter is not specified, the name is set automatically using the description that has been passed as the first parameter.
<Representation> (optional)
User representation of the added filter element.
Returned value:
If it is impossible to add a filter element, Undefined value is returned.
Description:
For example, if the "Counteragent" field is available, you can use "Counteragent", "Counteragent.CounteragentType", "Counteragent.CounteragentType.Description", etc. as filter elements.
Caution: This method is not available for filtering dynamic lists (Filter property of CatalogList.
Availability:
Note:
Example:
Filter = BalanceReport.ReportBuilder.Filter; If Filter.Find("Nomenclature") = Undefined Then Filter.Add("Nomenclature"); EndIf; Filter["Nomenclature"].Use = True; Filter["Nomenclature"].Value = Nomenclature; Filter["Nomenclature"].ComparisonType = ?(Nomenclature.IsFolder, ComparisonType.InListByHierarchy, ComparisonType.Equal); |
See also: