Catalogs

The system uses "Catalog" type objects for operation with constant and nearby constant data consisting of sets of values. Catalogs are usually lists of materials, products, entities, currencies, employees, etc. You can specify name and structure of a specific catalog when creating it in the designer. At the configuration stage, you can describe the properties that each specific catalog will have. Customizable properties include, for example, code length and type, the number of levels, code uniqueness support, and the catalog's attribute set. Besides code and name, catalog operation mechanism allows to create attributes set to store any additional information about a catalog item.

Example:

// Exapmle of creating new object=
NewObject = Catalogs.Currencies.CreateItem();
NewObject.Code = "840";
NewObject.Name = "USD";
NewObject.FullDescr = "US dollars";
NewObject.Write();

// Example of processing a catalog selection
Nomenclature = Catalogs.Nomenclature;
Filter = New Structure();
Empty = Enums.NomencratureTypes.EmptyRef();
Filter.Insert("Nomenclaturetype",Empty);
Selection = Nomenclature.Select(,,Filter, "Name Desc");
BeginTransaction();
While 
Selection.Next()  Do
    Object = Selection.GetObject();
    Object.NomencratureType = Enums.NomencratureTypes.Article;
    Object.Write();
EndDo
;
CommitTransaction();


    

1C:Enterprise Developer's Community