<autoGenerate> Element
This element defines settings for automatically generating serial numbers.
Parent Elements
Attributes
Name | Type | Description | Required |
---|---|---|---|
pattern | string | The pattern to use for the generated numbers. | Yes |
startCount | string | The start value to use for an incrementing count in the generated numbers. | No (defaults to "1") |
maxCount | string | The maximum count value to allow. | No |
Child Elements
None.
Remarks
pattern
must contain a single {count}
placeholder where the incrementing count will be inserted.
Other text before or after the placeholder will be placed into generated numbers as literal text.
startCount
and maxCount
can only contain numeric digits. Leading zeros are allowed and will be
preserved when generating numbers.
Examples:
pattern | startCount | Resulting Number Sequence |
---|---|---|
{count} |
1 | 1, 2, ..., 9, 10, 11, ..., 99, 100, 101, ... |
S12{count} |
1 | S121, S122, ..., S129, S1210, S1211, ... |
S12{count} |
0001 | S120001, S120002, ..., S129999, S1210000, S1210001, ... |