JmgTermJob::constructJobTable Method [AX 2012]
This method constructs a new instance of the JmgTermJob class based on a JmgJobTable record. Based on the jobId field of the JmgJobTable table, an instance of the appropriate subclass is returned.
Syntax
client server public static JmgTermJob constructJobTable(JmgJobTable _jmgJobTable, [boolean _forUpdate])
Run On
Called
Parameters
- _jmgJobTable
Type: JmgJobTable Table
The JmgjobTable record for which an instance of the JmgTermJob class is constructed.
- _forUpdate
Type: boolean
Determines whether the source data record is selected for update; optional. The default value is false.
Return Value
Type: JmgTermJob Class
An instance of a subclass to the JmgTermJob class.
Remarks
For performance reasons, this method should be preferred to the JmgTermJob::construct Method method if a JmgJobTable record has already been retrieved. The JmgTermJob::construct method also loads this record.