CalculationRegisterRecord.<Calculation register name>.GetBase

Syntax:

GetBase(<Resources>, <Dimensions>, <ViewPoints>)

Parameters:

<Resources> (required)

Type: Array.
The array of strings is a list of base calculation register resources which you want to sum.
Each array item is a string where you specify the base calculation register resources separated by commas as they are specified in the Configuration Manager set as <Calculation register name>.<Resource name>.

<Dimensions> (required)

Type: Structure.
Each structural element sets a list of dimensions of basic calculation registers, which will be used for selecting a base. Structure element names should be the same as names of dimensions of the current register and structure element values should be fields with comma-separated list of basic register dimensions.
If a calculation register has dimensions D1, D2, D3, you can set no more than three method parameters. The first of them is the base register dimension list compared with D1, the second is the base register dimension list compared with D2 and so on.
Dimension names are set as <Calculation register name>.<Dimension name>.
If you skip a parameter, you don't impose conditions on the corresponding dimension.

<ViewPoints> (optional)

Type: Array.
Sets the dimensions and attributes of the base calculation registers by which you want to compose the base.
The <Dimensions> parameter specifies a structure which sets rules of the base register dimensions and the current register dimensions comparison, and the <ViewPoints> parameter specifies the base register dimensions and attributes array in context of which the base will be composed. If this parameter is set, you will get a table of values with several records in general case. If this parameter is not set, the final table of values will have only one row.

Returned value:

Type: ValueTable.

Description:

Obtains the base for the register record.
The returned value table contains the "LineNumber" column and columns with the calculated resources (quantity is set by <Resources> parameter).

Availability:

Server, thick client, external connection.

    

1C:Enterprise Developer's Community