Alfasith AX

Alfasith AX
اللَّهُمَّ انْفَعْنِي بِمَا عَلَّمْتَنِي، وَعَلِّمْنِي مَا يَنْفَعُنِي، وَزِدْنِي عِلْمًا

Wednesday, February 26, 2014

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


No comments:

Post a Comment

How find size of recordsortedlist in D365/AX 2012

Hi, This is the continuity of the previous article where we are now getting the size of recordsortedlist . if(recordsortedlist.len() >1) ...