Share via


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

  • _start
    Type: boolean
    A Boolean that indicates whether it will be a start or a stop 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());

See Also

Reference

JmgTermJob_illegal Class