Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 247842

Summary: [Improve Page Break Management] Ability to add conditions for page break
Product: z_Archived Reporter: erlich <jerlich>
Component: BIRTAssignee: JingwenShen <jingwen.shen>
Status: VERIFIED FIXED QA Contact: Xiaodan Wang <xwang>
Severity: enhancement    
Priority: P3 CC: bluesoldier, jingwen.shen, rkanguri, wyan
Version: 2.3.0Keywords: plan
Target Milestone: 2.5.0 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard: Obsolete

Description erlich CLA 2008-09-18 11:32:11 EDT
 
Comment 1 erlich CLA 2008-09-18 11:34:47 EDT
It would be great to add conditions for page break.. so we can count the amount of columns for example and do page break every 4 columns..
This is specially important on crosstabs..
Comment 2 Wei Yan CLA 2008-09-18 21:19:02 EDT
the user can set page-break in the onCreate script.
Comment 3 erlich CLA 2008-09-19 10:14:45 EDT
I tried adding "this.getStyle().pageBreakBefore = "Always"; on the oncreate of the column but it didn't work..
did i miss something?
Comment 4 erlich CLA 2008-09-23 15:58:25 EDT
it didn't work for me.. did i miss something?
Comment 5 Wei Yan CLA 2008-09-23 21:36:47 EDT
BIRT does't support the dynamic page-break on column as the column has no onCreate/onRender scripts. The user can't access the column in the table's onCreate either as there is no API to access the column in the table.

We need enhance the BIRT to support this feature.
Comment 6 erlich CLA 2008-09-24 13:38:36 EDT
and what about the oncreatecell method on the crosstab? is there anyway to do this there??
Comment 7 Wei Yan CLA 2008-12-22 01:31:35 EST
Add column related APIs in the ITableInstance, so the user can change the properties for the column:

int getColumnCount() 
IColumnInstance getColumn(int index) 
Comment 8 JingwenShen CLA 2009-01-21 21:49:53 EST
fixed the problem in birt2.5.0.
Comment 9 Xiaodan Wang CLA 2009-01-23 05:07:19 EST
Open another entry 262136 for "Script does not work correctly in Web Viewer".

Verified in build (2.5.0.v20090123-0630).