Skip to main content



      Home
Home » Archived » BIRT » Dynamic Images in a data bound Table.
Dynamic Images in a data bound Table. [message #204272] Thu, 30 November 2006 22:58
Eclipse UserFriend
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.
Previous Topic:How to pass a parameter to a XML data source
Next Topic:Problem in birt-runtime
Goto Forum:
  


Current Time: Thu May 15 13:32:09 EDT 2025

Powered by FUDForum. Page generated in 0.03749 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top