autonumber(a,b)
Returns the number 1 for the first call of the profile-wide number range a. Each subsequent call of this number range returns the subsequent integer, i.e. 2,3, etc.
If the maximum value (2147483647) is exceeded, the following value will be 1 again.
A distinct number range is managed per profile and number range name.
Important note: When this function is executed, a connection to the main database ("hub") is established and closed again. Please note that this can lead to large performance losses with very frequent function calls.
Parameters
Parameter |
Description |
a |
Name of the number range. Important note: Case-sensitive! |
b |
(optional) If true, the number range is not incremented. The return value is always 2. Default: false. Note: The use makes sense, for example, if you do not want the number range to be incremented in mapping tests. It is recommended to use the system variable VAR_IS_TEST as parameter in this case. |
GUI
See section Profile values for profile-wide number ranges.
Examples
Parameter a |
Parameter b |
Result |
Number_Range_1 |
|
1 |
Number_Range_2 |
|
1 |
Number_Range_2 |
|
2 |
Number_Range_1 |
|
2 |
number_range_1 |
|
1 |
number_range_1 |
|
2 |