BIRT:在表组中交替行颜色 [英] BIRT: Alternating row Color in a table group

查看:94
本文介绍了BIRT:在表组中交替行颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道突出显示条件的外观如何,以便在组中创建交替的行吗?我希望表组的偶数行(而不是整个表的行)具有不同的颜色.

Has anybody an idea of how the highlighting condition has to look like, to create alternating rows in groups? I want the every row with an even number of a table group (not of the whole table) to have a different color.

提前谢谢! :-)

帕特里克

P.S .:我正在使用BIRT 2.1.3

P.S.: I'm using BIRT 2.1.3

推荐答案

像这样向行添加突出显示:

Add a highlight to the row like this:

row[0] % 2 Equals 0

这行得通,因为row是当前行,row [0]是行号. row [1],row [2]等是当前行的数据值.

This works because row is the current row and row[0] is the rownumber. row[1], row[2] etc. are the data values for the current row.

(来源: http://dev.eclipse.org/newslists/news.eclipse.birt/msg03977.html )

这篇关于BIRT:在表组中交替行颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆