Just one little problem I can`t seem to reduce the image to fit the field or the button I planned to use. I`ve played a bit with the code but with no succes do you know a way o reduce / enlarge the background to fit on whatever size the output imageholder is??
I believe you cannot influence the size of the image when you use <td background= "image"
How do I get the image available in the method editor or in a calculation??
When you're in record view , you can simply attach an image to an element >> elements.button.setImageURL(="media:///myImage.gif")
But if you're in list view the whole column would be affected, which you don't want.
So here's another workaround for listviews.
1) create a table called IMAGES, columns: imageHolder, label
(store the images you need inside this table and label them)
2) create a relation from your listview(assume it's companies) to the images table
companies_to_images >> companies.label=images.label
3) create a button in your listview and set it's dataprovider(property)
with companies_to_images.imageHolder
the image will now be determined by the labelcolumn (left hand key) in companies
4) you can now also use the button's mediaOptions-property in order to control the image size in the button.
NOTE: I haven't tested this on a large list yet.
(might be slower then using the HTML method)