Share via


JmgTermJob_IPC.sourceData Method [AX 2012]

Retrieves the source data record that the job originated from. For IPC jobs, this is a JmgIpcActivity record.

Syntax

public Common sourceData()

Run On

Called

Return Value

Type: Common Table
The source record that the job originated from.

Remarks

If the returned record will be updated, the JmgTermJob::construct or JmgTermJob::constructJobTable methods should be invoked with the _forUpdate parameter set to true.

Examples

The following code example shows the cost price for the IPC activity with job ID 100000123.

JmgTermJob jmgTermJob; 
JmgIpcActivity jmgIpcActivity; 
 
jmgTermJob = JmgTermJob::construct('100000123'); 
jmgIpcActivity = jmgTermJob.sourceData(); 
info(strFmt( 
    "The cost price for activity %1 is %2",  
    jmgIpcActivity.Activity, jmgIpcActivity.CostPrice));

See Also

Reference

JmgTermJob_IPC Class