JmgTermJob_illegal.isValidJobId Method [AX 2012]
Checks whether this instance is based on a valid job ID.
Syntax
public boolean isValidJobId()
Run On
Called
Return Value
Type: boolean
true if it is based on a valid jobs ID; otherwise, false.
Examples
The following code example is a method that displays an error to the user if the input is not a valid job ID.
public void checkJobId(JmgJobId _jmgJobId)
{
JmgTermJob jmgTermJob = JmgTermJob::construct(_jmgJobId);
if (!jmgTermJob.isValidJobId())
{
throw error("Input is not a valid job id");
}
}