NumberSequenceTable::findNextAutoId Method
Generates a NumberSequenceCode value for the specified data type.
Syntax
server public static NumberSequenceCode findNextAutoId(ExtendedTypeId _edt)
Run On
Server
Parameters
- _edt
Type: ExtendedTypeId Extended Data Type
The ExtendedTypeId value of the data type for which a NumberSequenceCode will be generated.
Return Value
Type: NumberSequenceCode Extended Data Type
A NumberSequenceCode value for the specified data type.
Remarks
The resulting NumberSequenceCode value will be of the following format: [DatatypePrefix]_[IntegerPortion] where [DatatypePrefix] = a string of up to 4 characters based on the label of the specified data type. [IntegerPortion] = an integral value. The resulting [IntegerPortion] of the resulting NumberSequenceCode should be one larger than any other NumberSequenceCode which exists with the same [DatatypePrefix].