Dynamic Images in a data bound Table. [message #204272] |
Thu, 30 November 2006 22:58 |
Eclipse User |
|
|
|
I want to control the image that shows up in a table column based upon
the value of an item in the current row being processed. What I have
done in the image column is to declare it as an embedded image. Then,
in the Image's onCreate script, I coded the following:
setImageName(row["Trend"] + ".jpg")
where the Trend column always contains one of three possible values,
"up", "level" or "down". In addition. those three images have all been
embedded in the report itself.
This appears to work great in the BIRT runtime, but does not work in the
Designer Preview. In the Preview, it always shows the original image
selected for that Image control.
Is this a good way to go about this? And does it makes any sense that
the Preview does not work, but the runtime does?
This is with BIRT 2.0.
Pat McNerthney
ClearPoint Metrics, Inc.
|
|
|
Powered by
FUDForum. Page generated in 0.03796 seconds