JmgTermJob_illegal.makeRegistration Method [AX 2012]
Creates a start job registration or a stop job registration.
Syntax
public void makeRegistration(
JmgWorkerRecId _worker,
JmgDate _date,
JmgTime _time,
[boolean _start,
JmgRegistrationParameters _registrationParameters,
NoYes _autoStamp])
Run On
Called
Parameters
- _worker
Type: JmgWorkerRecId Extended Data Type
The ID of the Worker who is making the registration.
- _date
Type: JmgDate Extended Data Type
The date of the registration.
- _time
Type: JmgTime Extended Data Type
The time of the registration.
- _start
Type: boolean
A Boolean that indicates whether it will be a start or a stop registration; optional.
- _registrationParameters
Type: JmgRegistrationParameters Class
Additional registration parameters with which to create the registration; optional.
- _autoStamp
Type: NoYes Enumeration
A NoYes function that indicates whether this registration is made by an employee enumeration value or by some function activated by a supervisor enumeration value; optional.
Remarks
It is impossible to create registrations on an illegal job and this method throws an error when it is tried.
Examples
For a code example that uses the makeRegistration method, see JmgTermJob.makeRegistration Method.
JmgTermJob jmgTermJob;
jmgTermJob = JmgTermJob::construct('10000007');
jmgTermJob.makeRegistration(jmgWorkerRecId, today(), timeNow());