JmgTransferTimecard.run Method [AX 2012]

This member overrides the run Method.

Syntax

public void run()

Run On

Called

Remarks

The timecard registrations are validated by using the JmgValidateTimecard Class. If the validation succeeds, the timecard registrations are created in the JmgStampJournalTrans Table, ready for the supervisor to calculate. All existing JmgStampJournalTrans Table lines on the day are deleted before the new ones are created.

Examples

The following example demonstrates the use of this method.

myRunbase myRunbase; 
 
myRunbase = myRunbase::construct(); 
if (myRunbase.prompt()) 
{ 
    myRunbase.run(); 
    //...  
} 
public void run() 
{ 
    if (! this.validate()) 
    { 
        throw Error("Error message..."); 
    } 
    try 
    { 
        ttsbegin; 
        ttscommit; 
    } 
     catch (exception::DeadLock) 
     { 
        retry; 
     } 
}

See Also

Reference

JmgTransferTimecard Class