ReportBuilderDimensions.Count

Syntax:

Count()

Returned value:

Type: Number.

Description:

Obtains the number of dimensions in a collection of report builder dimensions.

Availability:

Server, thick client, external connection.

Example:

// ReportsBuilder - report attribute of ReportBuilder type  
AvailableDimensions = New Map;
If 
Not UseTamplate Then
    For IndexOf=To ReportsBuilder.AvailableFields.Count()-Do
        Field = ReportsBuilder.AvailableFields[IndexOf];
        If 
Field.Dimension Then
            AvailableDimensions.Insert(Field.Name, Field.Presentation);
        EndIf
;
    EndDo
;

    For 
IndexOf=To ReportsBuilder.RowDimensions.Count()-Do
        Dimension = ReportsBuilder.RowDimensions[IndexOf];
        AvailableDimensions.Delete(Dimension.Name);
    EndDo
;

    For 
IndexOf=To ReportsBuilder.ColumnDimensions.Count()-Do
        Dimension = ReportsBuilder.ColumnDimensions[IndexOf];
        AvailableDimensions.Delete(Dimension.Name);
    EndDo
;
EndIf
;


    

1C:Enterprise Developer's Community