ID generators

The freely definable number generator assigns consecutive numbers independently and writes them into the desired field.

Product line

Standard

|

Expert

Operating mode

CLOUD ABO

|

ON-PREMISES

Modules

Services & CRM

Budget & Phases

Purchases

Resource Planning

Business Intelligence

Created: 04.06.2003
Updated: 13.12.2022 | Screenshot adapted to Vertec 6.6.

To get to the desired settings, select Settings > Customizing > ID generators:

Here you can define and configure number generators for each data type. A number generator assigns consecutive numbers independently and writes them into a specific field, which must be of the the type string. A well-known example of an integrated number generator in Vertec is the invoice number, which is automatically entered when an invoice is generated.

Classes

The class name of the relevant data type is entered here. The starting letters of class names are always capitalized.

Expression

Must be a data field of type string. In this field, the generated number is entered when a new entry is created. The data field must be an attribute of the class specified above. This   OCL expression is written with a lowercase letter at the start.

Prefix

Enter here the first digits of the generated numbers. Make sure that there are enough digits for automatic counting. The prefix can never be the same length or longer than the length of the whole number. If the prefix is only one digit shorter than the length, a maximum of nine digits can be generated, with two digits a maximum of 99 digits, etc.

Postfix

The ending of the generated number. Make sure that there are enough digits in relation to the length of the entire number. If the prefix and postfix together are one digit shorter than the length, a maximum of 9 digits can be generated, with two digits a maximum of 99 digits. The postfix is always written at the end of the generated number. Between the prefix and postfix is counted.

Counter

Displays the last digit of the variable part of the number.

Length

Specify here how long the generated numbers should be. Between the prefix and the postfix is then counted up until there are no more digits.

ID generators on custom fields

ID generators can also be used on custom fields. It is important that the custom field is of the type string.

In the ID generator, the custom field can be given in the form zusatzfeld('name of field’) as an expression, for example:

Bitte wählen Sie Ihren Standort