Showing posts with label Progress Bar in AX 2012. Show all posts
Showing posts with label Progress Bar in AX 2012. Show all posts

Tuesday, 10 March 2015

Progress (Loading) bar animation in Dynamic AX 2012

static void progressBars(Args _args)
{
    #AviFiles
    SysOperationProgress progress = new SysOperationProgress();
    int i;

    ;

    progress.setCaption("Loading…");
    progress.setAnimation(#AviUpdate);
    progress.setTotal(50000);
    for (i = 1; i <= 50000; i++)
    {
        progress.setText(strfmt("The value of i is %1", i));
        progress.setCount(i, 1);
    }
}