Autoincrement is a function that operates with record numbers. It automatically generates a new record number increased by 1.It can be used for various purposes. One of them, for example, is registering user queries for further processing and statistical purposes.
Autoincrement settings are stored in the Number (sys_number) table contains the Maximum digits, the Prefix, and the Start Value settings for the table.
In order to create an autoincrement, the following criteria must be met:
- The object for which you are configuring an autoincrement must have a field that should be incremented.
- The field should be of String type. These fields are usually named “Number”.
If your table does not have this field, please create it. Refer to the Create Columns article for more information.
Record Number form fields
Field | Mandatory | Description |
---|
Maximum digits | Y | Define the max number of digits after the prefix. |
Prefix | Y | Specify at least three Latin letters that will be the beginning of every record ID in this table. |
Start Value | Y | Specify the initial value of the sequence. The default value is '1'. |
Example
If the value of the Start Value changes, and it is greater than the current value of the sequence, the value will be saved, and the sequence will be set to a new starting value.