CatalogsManager.AllRefsType

Syntax:

AllRefsType()

Returned value:

Type: TypeDescription.

Description:

Obtains a type declaration, containing the types for catalog references.

Availability:

Server, thick client, external connection, Mobile application (server).

Example:

// Receive list of comparison types by type 
List = New ValueList;
List.Add(ComparisonType.Equal);
List.Add(ComparisonType.NotEqual);
List.Add(ComparisonType.InList);
List.Add(ComparisonType.NotInList);
// TypesArray - array of available types
For IndexOf = 0 to TypesArray.Count() - 1 Do
    If Catalogs.AllRefsType().ContainsType(TypesArray[IndexOf]) Then
        If Metadata.FindByType(TypesArray[IndexOf]).Hierarchical Then
            List.Add(ComparisonType.InListByHierarchy);
            List.Add(ComparisonType.NotInListByHierarchy);
            Break
;
        EndIf
;
    EndIf
;
EndDo
;


    

1C:Enterprise Developer's Community