How to display Images/Icons for grid data from resource/path in Ax

ImageList

 

void run()
{
Imagelist list = new Imagelist( Imagelist::smallIconWidth(), Imagelist::smallIconHeight());
FormWindowControl w = element.control( control::window);
Image image = new Image();
;
/*
list.add( new Image(927));
list.add( new Image(928));
list.add( new Image(929));
*/
image.loadImage(“F:\\JKG\\Johnkrish.jpg”);
list.add(image);
image.loadImage(“F:\\JKG\\Remove.png”);
list.add(image);
w.imageList( list );

super();

}

display int imageIdx(Bill_Table t)
{
if(t.Price <= 50)
return 0;
else
return 1;
}

list

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s