Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Initializes the specified TmpNumberSeqCreate record based on the specified NumberSequenceDatatype and NumberSeqScope records.
Syntax
client server public static boolean initForDatatype(
TmpNumberSeqCreate tmpNumberSeqCreate,
NumberSequenceDatatype _numberSequenceDatatype,
NumberSeqScope _scope,
boolean _logErrors,
[Map _lastCodeForPrefixMap])
Run On
Called
Parameters
- tmpNumberSeqCreate
Type: TmpNumberSeqCreate Table
The TmpNumberSeqCreate record to initialize.
- _numberSequenceDatatype
Type: NumberSequenceDatatype Table
The NumberSequenceDatatype record to use.
- _scope
Type: NumberSeqScope Class
The NumberSeqScope record to use.
- _logErrors
Type: boolean
A Boolean value that indicates whether to write error and warning conditions to the Infolog.
- _lastCodeForPrefixMap
Type: Map Class
A map that has a key of a string and a value of a string. All TmpNumberSeqCreate records generated by calling this method have a NumberSequenceCode object of the following format: [DatatypePrefix]_[IntegerPortion] where [DatatypePrefix] = a string of up to 4 characters based on the specified NumberSequenceDatatype value. [IntegerPortion] = an integral value. The key of this map is a value mapping to a [DatatypePrefix]. The value of this map is the last NumberSequenceCode object that has that prefix generated by a previous call to this method.
Return Value
Type: boolean
true if the TmpNumberSeqCreate record was successfully initialized; otherwise, false.
Remarks
The _lastCodeForPrefixMap parameter is used to avoid unnecessary calls to the NumberSequenceTable::findNextAutoId method.