birt 应用

1.birt头斜线

http://www.birthome.com/read.php?tid-1170.html

 

 

2.交叉报表 表头多一行
http://www.birthome.com/read.php?tid-2382.html

 

 

3.交叉报表中,count 的字段为空 怎么默认为0?

点击交叉表,脚本,onprepare中添加下面一段js,则空的字段默认都为0


/**
 * Called when crosstab is being prepared.
 *
 * @param crosstab
 *            ICrosstab
 * @param reportContext
 *            IReportContext
 */

function onPrepareCrosstab( crosstab, reportContext )
{
  crosstab.setEmptyCellValue("0");
}

 

 

4.数据库多用数字表示意思,在输出到报表时需要做转化。

点到字段上,脚本  ,onCreate 中添加如下:

当为0或1时,取资源文件想对应字段

if(this.getValue() == 0)
{
   this.setDisplayValue(reportContext.getMessage("ph.product.type.base", reportContext.getLocale()));
}else
{
   this.setDisplayValue(reportContext.getMessage("ph.product.type.increment", reportContext.getLocale()));
}

 

 

5.图表中的基准线 设定

   点击  图表格式-- Y轴 -- 标记 -- 添加线条

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值