代码之家  ›  专栏  ›  技术社区  ›  Talib

使用count函数时报表中的空行

  •  1
  • Talib  · 技术社区  · 7 年前

    我在mongodb数据源中使用BIRT报告。我正在统计一些事件。COUNT函数给出了正确的值,但根据COUNT值,页面末尾有很大的空白。如果计数值较大,则页面的其余部分为空,下一页会出现相同的记录,例如: 在这个图像中,页面的其余部分是空的,相同的记录也出现在接下来的页面上。看起来正在打印空白。

    enter image description here

    我的报告是这样的:

    enter image description here

    计数功能:

    enter image description here

    我也尝试过使用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)
    

    请帮忙,提前谢谢。

    1 回复  |  直到 7 年前
        1
  •  1
  •   Talib    7 年前

    我知道这个问题的症结所在。如果我们从组中选择“隐藏详细信息”选项,那么这个问题就会消失。

    enter image description here