In this section, you will specify the catalog code and description settings.
- Return to the Catalog configuration object editor and click the Data tab.
Note the Code length and Description length fields.
The code length is an important catalog property. As a rule, the catalog code is used to identify a catalog item, and it contains a unique value for each catalog item. The platform can check the codes for uniqueness and perform automatic numbering of catalog items. So the code length defines the total number of items that can be stored in a catalog.
The maximum code length is 9 characters. This means that codes between 1 and 999999999 are available, which is okay for the small company Jack of All Trades.
Now let us look at the description length. 25 characters would clearly be too few.
- In the Description length field, type 50 (fig. 3.20).
Fig. 3.20. Specifying catalog code length and description length
You also need a better name for the Description standard attribute, which will be displayed in the user interface. The word "description" is suitable for inanimate objects but our customers are people.
Since the user interface displays object synonyms, let us change the Synonym property of the Description catalog attribute.
- At the bottom of the window, click the Standard attributes button.
- Right-click the Description attribute and then click Properties (fig. 3.21).
Fig. 3.21. List of standard catalog attributes
- In the property palette of the Description standard attribute, in the Synonym field, type Full name (fig. 3.22).
Fig. 3.22. Property palette of the Description standard attribute
Note that you changed the synonym of the configuration object attribute instead of changing the synonym of the form attribute. Actually, in this case, the platform automatically generates the item form for the Customers catalog.
So this attribute will have its synonym set in all types of forms unless you decide to change it during the development of a custom form.
Also, note that the default value of the Fill check property is Display error. It means that leaving the Description attribute blank will generate an error message (see fig. 3.29).
Next page: Item creation command