QuerySchemaTotalCalculationFields.Add

Syntax variant: By expression

Syntax:

Add(<Expression>)

Parameters:

<Expression> (required)

Type: QuerySchemaExpression.
It contains an expression.

Description of method variant:

It adds a new item based on the expression. If the expression contains an error, an exception is given with the error text.

Syntax variant: By column

Syntax:

Add(<Column>)

Parameters:

<Column> (required)

Type: QuerySchemaColumn.
Query schema column.

Description of method variant:

It adds a new item based on the column.

Syntax variant: By string

Syntax:

Add(<ColumnOrExpression>)

Parameters:

<ColumnOrExpression> (required)

Type: String.
First, search for a column will be performed by the passed string. If it fails, an expression is created and added to the collection. If the created expression is incorrect, an exception is called.

Description of method variant:

A search for the column is performed by the transferred string. If the search produces no results, an expression is created and added to the collection.
If the created expression is incorrect, an exception is outputted.

Returned value:

Type: QuerySchemaTotalCalculationField.

Description:

Adds a new collection item and returns it.

Availability:

Server, thick client, external connection.

    

1C:Enterprise Developer's Community