JmgTermJob.stampType Method [AX 2012]
Returns the stamp type associated with this job.
Syntax
public abstract JmgStampTypeEnum stampType()
Run On
Called
Return Value
Type: JmgStampTypeEnum Enumeration
The stamp type associated with this job.
Examples
The following example validates that the user input is an absence job ID.
public void checkAbsenceJobId(JmgJobId _jobId)
{
JmgTermJob jmgTermJob = JmgTermJob::construct(_jobId);
if (jmgTermJob.stampType() != JmgStampTypeEnum::Absence)
{
throw error(strFmt("%1 is not an absence job ID.", _jobId));
}
}