Using images in Dynamics AX can sometimes be a painful experience, just keeping track of the Integer that represents the images is almost impossible. But with a macro called resAppl this becomes much easier, mainly because you, most of the time, can guess what commands to use to get the image you want. This makes it easier to remember between times you are going to use it, and above all it makes your code much easier to read and follow.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | static void FO_ resAppl (Args _args) { #resAppl ; // Commonly used in forms print #ImageWarning; print #ImageError; print #ImageInfo; pause; // Some more print #ImageEmployee; print #ImageQty; print #ImageOK; print #ImageEnum; print #ImageReal; print #ImageDate; // Some images from the toolbar print #ImageNew; print #ImageDelete; print #ImageAOT; pause; } |
Last 5 posts in Development
- No valid document identified from the entity key - April 9th, 2010
- Using Regular Expressions in Dynamics AX - October 2nd, 2009
- Create class and methods in x++ - December 22nd, 2008
- Simple field lookup in form - October 13th, 2008
- Get your Intercompany CustAccount - September 29th, 2008