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

WorflowWorkitemActionManager- Customizations. - Validation on workflow approval actions in D365 Fno / AX 2012 R3

D365FO Workflow Validation Before Action Execution Workflow Validation Before Executing a Workflow Action in Dynam...