JmgTermJob.jobRef Method [AX 2012]
Returns the job reference of the job.
Syntax
public JmgJobRef jobRef()
Run On
Called
Return Value
Type: JmgJobRef Extended Data Type
The job reference of this job.
Remarks
Depending on the type of job, this method returns the following:
Production ID for production jobs. Implemented in JmgTermJob_Prod.jobRef Method
Project ID for project jobs. Implemented in JmgTermJob_Proj.jobRef Method.
Indirect Category ID for IPC jobs. Implemented in JmgTermJob_IPC.jobRef Method.
Absence code group ID for absence jobs. Implemented in JmgTermJob_HRMAbsence.jobRef Method.
Examples
The following example displays the production ID of the production job with ID '10000008'.
JmgTermJob jmgTermJob;
jmgTermJob = JmgTermJob::construct('10000008');
info("The production ID is: " + jmgTermJob.JobRef());