preloader-matrix

Alfasith

Progress (Loading) bar animation in Dynamic AX 2012

Hi,
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);
    }
}

Leave a Reply

Your email address will not be published.