0

AX 2012 – RecordInsertList (basic sample)

Sample code…. Bad Practice: RandomTable randomTableBuffer; // Imagine this loop returns 10000 records. while select randomTableBuffer where randomTableBuffer.RandomField1 == “1” { randomTableBuffer.RandomField2 == “2”; randomTableBuffer.insert(); } This would insert a record in the database 10000 times. Of course this would… Continue Reading

0

Dynamics AX 2012 – Update data progress bar

This job example will explain the use of SysOperationProgress¬†class; static void DEV_progress_example(Args _args) { int i; #AviFiles SysOperationProgress progress = new SysOperationProgress(); progress.setCaption(‘Processing something please wait’); /* Caption of the progress bar */ progress.setAnimation(#AviUpdate); /* You can set different animations… Continue Reading