CatalogSelection.<Catalog name>.LevelInSelection

Syntax:

LevelInSelection()

Returned value:

Type: Number.
Level in the selection.

Description:

Obtains catalog item level in the selection obtained by SelectHierarchically method. The level is expressed starting from zero. Thus, while tabbing the top level of the selection, the level will equal zero. The returned values will depend on the parent filter that was used for the search . If filtering by parent is not performed, the level in the selection will be the same as catalog item level.

Availability:

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

Note:

Not applicable to hierarchical selections.

Example:

Nomenclature = Catalogs.Nomenclature;
Selection = Nomenclature.SelectHierarchically(SelGroop,,);
While 
Selection.Next()  Do
    Message("In selection " + Selection.Ref + "Level "+ 
             Selection.LevelInSelection());
    Message("In catalog " + Selection.Ref + "Level "+
             Selection.Ref.Level());
EndDo
;


    

1C:Enterprise Developer's Community