Sage X3 – Class Management: In Sage X3, data management is all about using classes. A class is a framework for managing various entities such as suppliers, general ledger entries, sales orders, purchase orders, prospects, customers and more. This post explains the concepts of class management, its components, and its significance in Sage X3.
Class Essentials
In Sage X3, classes are vital for the structuring and management of data entities. The information within a class is organized into distinct sections, each section serving a specific purpose. The sections include:
1. Header Information
The header information contains details for identifying the class; it includes the header code, description, and type.
2. General Section
The general section describes the primary information related to the class; it includes the management mode, type, and more.
3. Main Table
The main table defines the primary database table that is used when the class is persistent; it also contains details about the main index.
4. Additional Information
This includes activity codes, technical module associations, cache settings, search-ability, and more.
5. Collection
Collection describes class collections, their attributes, and settings.
6. Scripts
Scripts facilitate adding custom code related to supervisor events, especially for CRUD (Create, Read, Update, Delete) management.
7. Methods Section
Methods section defines the additional methods and operations available for the class, it distinguishes between operations and methods.
8. Standard Methods Section
The standard methods section describes the availability of standard CRUD methods and other methods supported by the supervisor layer on the class.
9. Properties Section
The properties section lists and defines the properties associated with the class, including the data types, menus, control tables, and more.
10. Mapping Section
The mapping section specifies how CRUD operations are linked to the database tables, including the main table and child classes.
11. Miscellaneous Section
The miscellaneous section contains the additional information for access rights, filters, history, and linked objects.
Class Management
Class management in Sage X3 entails configuring the class to ensure data integrity, optimize performance, and enable seamless data interactions. This section covers settings such as reading, creation, modification, deletion, filters, and more.
Validation
Validation is critical to class management, in validation, the class description is checked for global consistency. During the validation process, code generation occurs, this creates scripts and business logic associated with CRUD operations. It’s essential to understand that any created program should not be changed as it will be recreated automatically during validation.