Share via


JmgTermJob_Prod.allow Method [AX 2012]

Retrieves whether employees can create registrations on the job.

Syntax

public boolean allow()

Run On

Called

Return Value

Type: boolean
true if employees can make registrations on the job; otherwise, false.

Remarks

For production jobs, the return value is determined by the Shop Floor Control parameter setup. Here you can specify which types of production jobs the parameter setup can register on.

Examples

The following code example shows how the allow method is used to make sure that it is valid to create registrations on the job before the registration is made.

JmgTermJob jmgTermJob; 
 
jmgTermJob = JmgTermJob::construct('10000185'); 
if (jmgTermJob.allow()) 
{ 
    jmgTermJob.makeRegistration(jmgWorkerRecId, today(), timenow()); 
}

See Also

JmgTermJob_Prod Class

JmgTermJob.allow Method