Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » How to give each table in the report a name(How to give each table in the report a name)
How to give each table in the report a name [message #1012992] Fri, 22 February 2013 10:24 Go to next message
vasanth kumar is currently offline vasanth kumar
Messages: 4
Registered: October 2012
Junior Member
Hi All,

In my report there are around 10 tables and 9 datasets(workorder,wosafetyplan,classstructure,jobplan,pm,pmsequence,asset,site,locations,ci)

They had mentioned "Give each table in the report a name, and add the names to the list below'.
But How to do it??
Please help

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 = ["mainTable "];
for each(var tableName in tableListing) {
var table = reportContext.getReportRunnable().designHandle.getDesignHandle().findElement(tableName)
if (table != null) {
table.setProperty("pageBreakInterval", 0);
}
}
}
Re: How to give each table in the report a name [message #1013090 is a reply to message #1012992] Fri, 22 February 2013 13:58 Go to previous messageGo to next message
Michael Williams is currently offline Michael Williams
Messages: 802
Registered: July 2009
Senior Member

You can name your tables by selecting a table, going to the property editor's general section, and entering a name in the name field.

Regards,

Michael Williams
BIRT Exchange
Michael's BIRT Blog
Re: How to give each table in the report a name [message #1014125 is a reply to message #1013090] Mon, 25 February 2013 02:57 Go to previous messageGo to next message
vasanth kumar is currently offline vasanth kumar
Messages: 4
Registered: October 2012
Junior Member
Sorry I'm not find the specified path.. Sad

can u pls suggest me more clear...
Re: How to give each table in the report a name [message #1014329 is a reply to message #1012992] Mon, 25 February 2013 10:48 Go to previous messageGo to next message
Michael Williams is currently offline Michael Williams
Messages: 802
Registered: July 2009
Senior Member

Take a look at the image attached. The boxes highlight what you need to select. The numbers show the order.

Regards,

Michael Williams
BIRT Exchange
Michael's BIRT Blog
Re: How to give each table in the report a name [message #1014732 is a reply to message #1014329] Tue, 26 February 2013 06:05 Go to previous messageGo to next message
vasanth kumar is currently offline vasanth kumar
Messages: 4
Registered: October 2012
Junior Member
Thank you very much for providing the steps.
But,Still page break problem is not sloved. Sad

I'm using BIRT Version: 3.7.1 Could you please provide some solution for this issue.

PFA of report PDF output
  • Attachment: output.pdf
    (Size: 5.42KB, Downloaded 20 times)
Re: How to give each table in the report a name [message #1014866 is a reply to message #1014732] Tue, 26 February 2013 11:05 Go to previous message
Michael Williams is currently offline Michael Williams
Messages: 802
Registered: July 2009
Senior Member

So, you're trying to get rid of all the blank space in the PDF? Can you attach your report design?

Regards,

Michael Williams
BIRT Exchange
Michael's BIRT Blog
Previous Topic:Scripted datasource : wrong scope for "this" in Birt 4.2.1
Next Topic:cross tab - days of month
Goto Forum:
  


Current Time: Sat May 18 03:24:19 EDT 2013

Powered by FUDForum. Page generated in 0.02059 seconds