Re: Change color of one cell in crosstab depending of non crosstabdata (BIRT 2.5)
Yes, but the value has to be set prior to the xtab. If you define a
variable in one the event scripts or an expression it should be
available as long as the var keyword is not used. You can also set/get
them using reportContext.setGlobalVariable.
Jason
fenix4life wrote:
> Thx for the example.
> The
> cellInst.getDataValue("amount_DateGroup/quarter_ProductGroup/PRODUCTLINE")
> line helped me a lot.
>
> Is it possible to make the comparison of with data which is not
> contained in the datacube?
>
> if( cellInst.getDataValue("PRODUCTLINE") == - field not in the datacube
> - ){
> //set color to bluegray
> cellInst.getStyle().setBackgroundColor("RGB(169,170,226)");
> }
>
|