This is an archive of the Maximo Yahoo Community. The content of this pages may be a sometimes obsolete so please check post dates.
Thanks to the community owner Christopher Wanko for providing the content.
Helllo everyone!
We've recently upgraded our Maximo from 7116 to 7503. I am having some issues with some reports that are having unexpected page break. I have found a doco from IBM's website that the unexpected page break occurs when a report is generated in the report viewer. The report engine automatically inserts page breaks after every 50 rows and these page breaks are also used when the report is converted to PDF output.
To resolve this, I have done the below steps :
1. Add a new parameter called "usepagebreaks" in the report design file
2. The code below is added to the report's beforeFactory method:
// Remove page break intervals from PDF output
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 = ["childTable","childTaskTable","mainTable","taskTable"];
for each(var tableName in tableListing) {
var table = reportContext.getReportRunnable().designHandle.getDesignHandle().findElement(tableName)
if (table != null)
{
table.setProperty("pageBreakInterval", 0);
}
}
}
However, the unexpected page break still exist. I have re-written the report using BIRT 371. The said parameter and code for the beforeFactory method are already added by default. I just need to name my table and add them to the table listing. But it does not resolved my issue. Any help on this one please?
Thank you.
Best regards,
Janice