HcmPositionWorkerAssignment::findByPosition Method
Finds a record in the HcmPositionWorkerAssignment table by using the specified value of the Position field.
Syntax
client server public static HcmPositionWorkerAssignment findByPosition(
HcmPositionRecId _position,
[utcdatetime _validFrom,
utcdatetime _validTo,
boolean _forUpdate,
ConcurrencyModel _concurrencyModel])
Run On
Called
Parameters
- _position
Type: HcmPositionRecId Extended Data Type
A value of the Position field.
- _validFrom
Type: utcdatetime
A value of the ValidFrom field.
- _validTo
Type: utcdatetime
A value of the ValidTo field.
- _forUpdate
Type: boolean
A Boolean value that indicates whether to read the record for update; optional.
- _concurrencyModel
Type: ConcurrencyModel Enumeration
The concurrency model option to use when the record is read; optional.
Return Value
Type: HcmPositionWorkerAssignment Table
One or more records from the HcmPositionWorkerAssignment table; otherwise, an empty record.
Remarks
The values for the _validFrom and _validTo parameters limit the table selection in the following way:
If no values are specified for both the parameters they will use now. Therefore, the method searches for only active records and returns either an empty or a valid record.
If only the first parameter value is supplied, the second parameter will use the value of the first parameter.
The method searches for active records of the specified date and time and returns either an empty or a valid record.
If both parameters are supplied with values, this method searches for records with validFrom and ValidTo values in that interval. It may return multiple records.