- Create ImageList in form.init():
ImageList must be declared in ClassDEclaration section.imageList = new ImageList(ImageList::smallIconWidth(), ImageList::smallIconHeight(); Image image = new Image(); ; image.loadImage(filename) imageList.add(image); // ... image.loadImage(filename-n) imageList.add(image);
- Set AutoDaclaration property of Window field in the Grid to "Yes".
- Set ImageList for the window field in the method init() of form:
MyWindow.imageList(imageList);
- On the Table which you are using on the form create the display method. Something like this:
display int status() { if(this.amount > 10) return 5; // 5th image from image list else return 6; }
- Set properties DataSource and DataMethod for your window control:
DataSource = DataMethod = status
- Set properties DataSource and DataMethod for your window control:
This blog discusses tips that would be useful in Microsoft Dynamics AX! I have made a note of all pointers that I thought would prove to be useful for someone at some point in future! Please feel free to drop in your comments and feedback on any article here!
jeudi 21 avril 2011
How to display image in each line of a grid
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire