CatalogSelection.<Catalog name>

Properties:

<Attribute name>
<Common attribute name>
<Tabular section name>
Code
DataVersion
DeletionMark
Description
IsFolder
Owner
Parent
Predefined
PredefinedDataName
Ref

Methods:

GetObject
LevelInSelection
Next

Description:

This type of object is returned by Select and SelectHierarchically methods for the object of CatalogManager. type and is a specialized way of sorting catalog items. The system dynamically cycles through the elements. This means that selection method does not read all elements at once, but selects portions of elements from the database. Such an approach allows to cycle through large catalog lists quickly enough without loading all selection elements in the memory.

Availability:

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

Example:

Procedure SetAttribute(CatalogId, AttributeId, 
        AttributeValue, Structure4Filter)
    CatakogSelection = Catalogs[CatalogId].Select(,,Structure4Filter);
    While 
CatakogSelection.Next() Do
        Object = CatakogSelection.GetObject();
        Object[AttributeId] = AttributeValue;
        Object.Write();
    EndDo
;
EndProcedure

See also:

CatalogManager, method Select
CatalogManager, method SelectHierarchically

    

1C:Enterprise Developer's Community