JmgTermJob.makeFeedback Method [AX 2012]
This method is used to provide feedback on a started job.
Syntax
public abstract void makeFeedback(
JmgWorkerRecId _worker,
JmgRegistrationParameters _regParameters,
JmgDate _regDate,
JmgTime _regTime)
Run On
Called
Parameters
- _worker
Type: JmgWorkerRecId Extended Data Type
The ID of the worker making the feedback.
- _regParameters
Type: JmgRegistrationParameters Class
An instance of the JmgRegistrationParameters class, which encapsulates the parameters to the registration.
- _regDate
Type: JmgDate Extended Data Type
Date where the feedback is made.
- _regTime
Type: JmgTime Extended Data Type
Time where the feedback is made.
Remarks
Use this method to enter feedback regarding number of good items that are produced, the number of scrap items, and whether the job is finished. If the user has indicated that she is no longer working on the job, a stop job registration will be inserted also.
This method is only used with production jobs, as these are the only type of jobs on which feedback can be made.
Examples
The following example provides a start job registration on the job '10000087' as the specified employee. Then it provides feedback for ten good items that are produced.
JmgTermJob jmgTermJob;
JmgRegistrationParameters regParams;
jmgTermJob = JmgTermJob::construct('10000087');
jmgTermJob.makeRegistration(jmgWorkerRecId, today(), timenow());
regParams = new JmgRegistrationParameters();
regParams.goodQuantity(10);
jmgTermJob.makeFeedback(jmgWorkerRecId, regParams, today(), timenow());