During one of my customization, I have perform a lengthy operation, during this process there is requirement to show process indicator, Code snippets I have found from
For this method I have to create a process helper class and add following snippet its static method
static void operationProgress_progressBars(Args _args)
SysOperationProgress progress = new SysOperationProgress();
progress.setCaption(“File Transfer with Payment entries are in progess…”);
for (i = 1; i <= 50000; i++)
progress.setText(strfmt(“The value of i is %1”, i));
For testing purpose I add a new form and on its button click, I added from following line code.
Args arg = new Args();
This progress operation must be run between two build in functions, that helps to cover the lengthy process in Dynamics Ax 2012.