TaskManager.<Task name>.Select

Syntax:

Select(<Filter>, <Order>, <StartDate>, <EndDate>)

Parameters:

<Filter> (optional)

Type: Structure.
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. Only "Code", "Description" fields and task attributes, for which Index flag in the designer is set to "Index" or "Index with additional ordering" value can be set as filter fields.
Important: A structure can contain only one element.
If the parameter is not specified filter is not used.

<Order> (optional)

Type: String.
Task attribute name string that determines selection element order. 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 a parameter is not specified, the order is determined by the task main presentation.
Default value: Empty string.

<StartDate> (optional)

Type: Date.
Tasks start date and time for selection. If the parameter is not specified, all tasks are selected from the task in the database.
Default value: Empty date.

<EndDate> (optional)

Type: Date.
End date of tasks date range. If the parameter is not specified, all tasks are selected, ending with the last one in the database.
Default value: Empty date.

Returned value:

Type: TaskSelection.

Description:

Forms tasks selection by specified conditions.

Availability:

Server, thick client, external connection.

    

1C:Enterprise Developer's Community