View Single Post
  #1 (permalink)  
Old 07-03-2009, 07:20 AM
fenix4life
 
Posts: n/a
Default Change color of one cell in crosstab depending of non crosstab data (BIRT 2.5)

Hello,

I've found on the forum a way to change the color of a cell by using the
function onCreateCell and
cellInst.getStyle().setBackgroundColor("#FF0000").

Now I have a data source which looks a bit like this:

Duration
Distance
Cross_Price
Cross_Duration
Cross_Distance

The cross variables are used for my crosstab.

Duration1 Duration2
Distance1 Price1 Price2
Distance2 Price3 Price4

What I would like to achieve is that the cell where the crosstablocation
is equal to Distance / Duration has a different background color.

Is something like this possible?

Thx in advance.