【问题标题】:Birt Conditional Page BreakBirt 条件分页符
【发布时间】:2018-07-23 15:40:49
【问题描述】:

我正在设计一个应该打印在表单上的 BIRT 报告。在此报告中,它是双面打印的,因此如果 WorkOrder 的详细信息以奇数结尾,则客户要求进行分页,这样两个 WorkOrder 就不会在同一张纸上。

如果它是工作订单的末尾并且它是奇数,是否可以添加 pagecount() 并进行分页?

提前致谢。

【问题讨论】:

    标签: eclipse birt maximo


    【解决方案1】:

    我只有部分答案。在 ReportDesign 部分的 beforeFactory 中添加分页是可能的。开箱即用的 Maximo 报告具有 PDF 的分页语句。您可以扩展 if 语句 - 请参阅下面的 OOTB 代码示例。

    您需要能够将 WO 编号作为全局参数恢复。这部分是您需要做一些额外研究的部分。

    if ( (reportContext.getParameterValue("usepagebreaks") == "false")|| reportContext.getOutputFormat() == "pdf" ) {
    // Give each table in the report a name, and add the names to the list below, e.g. ["mainTable", "childTable1"]
    var tableListing = ["dataSet_inventory_id13#"];
    for each(var tableName in tableListing) {
        var table = reportContext.getReportRunnable().designHandle.getDesignHandle().findElement(tableName)
        if (table != null) {
            table.setProperty("pageBreakInterval", 0);
        }
    }
    

    }

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多