Share via


JmgTermJob_HRMAbsence.initSourceData Method [AX 2012]

Initializes source data for the absence job that the job is based on and loads either the HRMAbsenceCode record or the HRMAbsenceCodeGroup record into memory.

Syntax

protected void initSourceData(JmgJobTable _jmgJobTable, [Common _sourceData])

Run On

Called

Parameters

  • _jmgJobTable
    Type: JmgJobTable Table
    The JmgJobTable record with the corresponding job ID.
  • _sourceData
    Type: Common Table
    If the source data has already been fetched from the database, the source data can be supplied as a parameter. Optional.

Remarks

This method is invoked from the JmgTermJob.init Method.

Examples

The following code example shows how the initSourceData method is invoked from the JmgTermJob.init method.

// From classes\JmgTermJob\init 
protected void init( 
    JmgJobId _jmgJobId,  
    JmgJobTable _jmgJobTable,  
    Common _sourceData) 
{ 
 
    jobid = _jmgJobId; 
    jmgJobTable = _jmgJobTable; 
    this.initSourceData(_jmgJobTable, _sourceData); 
}

See Also

Reference

JmgTermJob_HRMAbsence Class