JmgTermJob.makeRegistration Method [AX 2012]
This method creates a start or a stop job registration on this job.
Syntax
public abstract 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 worker that 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
false if it is a stop registration; otherwise, the default value is true and indicates that it is a start registration.
- _registrationParameters
Type: JmgRegistrationParameters Class
Additional registration parameters, which should be used to make the registration; optional.
- _autoStamp
Type: NoYes Enumeration
A NoYes::Yes enumeration value if this registration is made by an employee; otherwise, the default value is a NoYes::No enumeration value and indicates that it is made by some function that is started by a supervisor.
Remarks
If an error is detected when the registration is made, an error is thrown.
Examples
The following example creates a start job registration on job ID 10000007 for the specified employee.
JmgTermJob jmgTermJob;
jmgTermJob = JmgTermJob::construct('10000007');
jmgTermJob.makeRegistration(jmgWorkerRecId, today(), timeNow());