CatalogRef.<Catalog name>.BelongsToItem

Syntax:

BelongsToItem(<Item>)

Parameters:

<Item> (required)

Type: CatalogRef.
Group (or hierarchy catalog item containing item hierarchy) 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.
False - otherwise.
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 ReferenceObject.BelongsToItem(ItemRef) Then
    Message("Belongs");
EndIf
;


    

1C:Enterprise Developer's Community