我在mongodb数据源中使用BIRT报告。我正在统计一些事件。COUNT函数给出了正确的值,但根据COUNT值,页面末尾有很大的空白。如果计数值较大,则页面的其余部分为空,下一页会出现相同的记录,例如:
在这个图像中,页面的其余部分是空的,相同的记录也出现在接下来的页面上。看起来正在打印空白。
我的报告是这样的:
计数功能:
我也尝试过使用SUM,但当我使用SUM函数而不是COUNT时,出现了以下错误:
org.eclipse.birt.report.engine.api.EngineException: A BIRT exception occurred. See next exception for more information.
Can not convert the value of True to Double type.
at org.eclipse.birt.report.engine.executor.ExecutionContext.addException(ExecutionContext.java:1245)
at org.eclipse.birt.report.engine.executor.ExecutionContext.addException(ExecutionContext.java:1224)
at org.eclipse.birt.report.engine.executor.DataItemExecutor.execute(DataItemExecutor.java:101)
at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.execute(WrappedReportItemExecutor.java:46)
at org.eclipse.birt.report.engine.internal.executor.emitter.ReportItemEmitterExecutor.execute(ReportItemEmitterExecutor.java:46)
at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplicateItemExecutor.execute(SuppressDuplicateItemExecutor.java:43)
at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.execute(HTMLAbstractLM.java:468)
请帮忙,提前谢谢。