Alfasith AX

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

Wednesday, February 26, 2014

Animation in AX 2012 with showing page is printing...

Hi,
 While processing some long operation we want to user to notify that its progressing by using below style.
you can call in different method when you require.
1. Create a new form
2. Add a animate control as shown below
3. Change the autoDeclaration property of the animate control to Yes.
4.Override the run method of the form with below code
public void run()
{
            int cnt;
            #AviFiles
            ;
            super();
            for(cnt=1;cnt<=600;cnt++)
        {
            Animate.animateFile(#AviPrint);
            Animate.play();
        }
        Animate.visible(true);
}
enjoy

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) ...