ChartOfAccountsManager.<Chart of accounts name>.Select
Syntax:
Parameters:
<Parent> (optional)
Filtering by parent. If the parameter is not set, filtering by parent cannot be executed.
<Filter> (optional)
Specifies a filter field and value of the opened selection. The structure key refers to a field name, while the structure value refers to the key filter value. The filter field can only be set with the field "Code", "Description" and the account attributes for which indexing is set in the designer to the "Index" or the "Index with additional ordering" value.
Important: A structure can contain only one element.
If the parameter is not specified filter is not used.
<Order> (optional)
The line with the account attribute's name defining the order of the item in the selection. You can specify "Code", "Description" or a name of attribute of a primitive type (Number, String, Date or Boolean) for which the "Index" flag is set to "Index" or "Index with additional ordering" in the designer. You can specify the sort direction after the attribute name using space as a separator. Direction is defined as: "Desc": descending order; "Asc": ascending order. Sort ascending is used by default. If the parameter isn't specified, then the order is defined by the main account's presentation.
Default value: Empty string.
Returned value:
Description:
Availability:
Example:
// Acciount - report attribute (of ChartOfAccountsRef type) SelectionByAccount = ChartsOfAccounts[Account.Metadata().Name].Select(Account); If SelectionByAccount.Next() Then // processing selection EndIf; |