Wednesday, March 19, 2014

Update 2 tables gather in while loop

By using forupdate to both tables during while loop, we are able to update both tables gather.


static void Job6(Args _args)



{

AvTmpEarning AvTmpEarning;

AvTmpEarningDtl AvTmpEarningDtl;

;

while select forUpdate AvTmpEarning

join forUpdate AvTmpEarningDtl

where AvTmpEarning.AccountNum ==AvTmpEarningDtl.AccountNum



{

ttsBegin;

AvTmpEarning.Car_Allowance = 10.10;

AvTmpEarningDtl.Comm_Rate= 6.34;





AvTmpEarning.update();

AvTmpEarningDtl.update();

ttsCommit;

// info(strFmt("%1", AvTmpEarning.Car_Allowance));



}

}


 

Tuesday, March 11, 2014

Table rename from Ax2009 to Ax2012

Ax2009/Ax4
Ax2012
LedgerTable          MainAccounts
LedgerTransGeneralJOurnalAccountEntry
GeneralJournalEntry
SubledgerVoucherGeneralJournalEntry
LedgerEntry(Optional)
LedgerEntryJournal(Optional)
LedgerEntryJournalizing(Optional)
InventTransInventTrans
InventTransOrigin