CatalogObject.<Catalog name>.BelongsToItem

Syntax:

BelongsToItem(<Item>)

Parameters:

<Item> (required)

Type: CatalogRef.
Group (or hierarchy catalog item containing a hierarchy of items) for which an item's subordination is to be defined.

Returned value:

Type: Boolean.
True indicates the item is subordinated to a group; otherwise it is False.
If the item itself is used as parameter, then False.

Description:

Defines the subordination of a catalog item to a group, taking into account all levels of the hierarchy.

Availability:

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

Note:

Determines an item's subordination to a group at the point at which the method was invoked, by consecutively reading all higher level items.

Example:

If Object.BelongsToItem(ItemRef) Then
    Message("Belongs");
EndIf
;


    

1C:Enterprise Developer's Community