Here's a quick mock up
We use flags in the database to track the progress of a task using integers. So 0 would be 'incomplete' and 1 would be 'complete', etc.
What I need is a way to dynamically show that data as an image in the treeview bean. In other tables within servoy we've used data calculations to replace the integer with an image url to great affect. We use small exclamation icons to note something that is a "no order" by replacing a 1 with the image url, etc.
I've tried looping through the dataset and replacing the integers with the url for the image and the bean just displays the string instead of the image. It seems all the fields are just text fields.
- Code: Select all
for ( var i = 1 ; i <= ds.getMaxRowIndex() ; i++ ){
if(ds.getValue(i,4) == '0'){
ds.setValue(i,4,"media:///alert.png")
}
}
results in:
Does the treeview bean support this in any way? If not, is there some other method of creating a treeview like table that allows a level of customization like the normal table view in servoy?
Thanks!