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

SQL code to upate one Legal entity banner to all the legal entity in D365

 Hi, update companyimage set  companyimage.Image  = companyimageA.Image  from  ( select Image from companyimage where dataAreaid = 'USF...