I have a table in a birt report which is bound to a dataset (from a CSV).
In the detail section there are several columns which ordinarily just print the values in the CSV using a DataItem report element. Now I have a case when based on the value of another column in that row then the value is actually an image. I would normally just use the Image report item but as the column is computed I know of no way to change the report item in the cell.
I've tried to do something in the onCreate event handler but I do not have access to the cell content which I would have in the Java API for building the report in the first place.
What other options do I have for changing the report item used to represent the data in my table?
I can't even just manually create all the rows as I do not know how many there will be when I create the report design, that's what the CSV is for.
Please help, I've been Googling and staring at the javadoc and reference for days without getting any closer to finding a solution.
e.g., rule is if A is X then B is just text, but if A is Y then B is an image.
======================
= A = B =
======================
= X = 42 =
======================
= Y = 42.png =
======================
= Y = 42.png =
======================
= X = 42 =
======================