CatalogRef.<Catalog name>.Level

Syntax:

Level()

Returned value:

Type: Number.
The level of a catalog item.

Description:

Obtains the level of a catalog item.

Availability:

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

Note:

Applicable only for multilevel catalogs. Please note that the item's level may change, for instance when moved to another group (parent change). An item with no parent has "0" level. If the reference is empty, calling the method returns an exception.

Example:

Message("This element belongs to level " +
          ReferenceToElement.Level());


    

1C:Enterprise Developer's Community