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

Bug 214180

Summary: Render chart reportlet in table group will contain table caption[0601]
Product: z_Archived Reporter: Liwen Chen <lchen>
Component: BIRTAssignee: Jandor Bian <dongpo.bian>
Status: VERIFIED FIXED QA Contact: Tianli Zhang <tzhang>
Severity: normal    
Priority: P3 CC: bluesoldier, hustlg, wenfeng.fwd, wyan
Version: 2.3.0Keywords: plan
Target Milestone: 2.5.0 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard: Autoed,G
Attachments:
Description Flags
report none

Description Liwen Chen CLA 2008-01-02 20:47:46 EST
Description:
Render chart reportlet in table group will contain table caption
Build number:2.3.0.v20080103

Steps to reproduce:
1. Preview attached report in Web Viewer.
2. Append "&__bookmark=USA&__isreportlet=true"behind the browser url, press enter.

Expected result:
Display Chart item as reportlet only, the chart reportlet has three data.

Actual result:
Display correct chart report containing three data but at the same time, table caption displays, too.
Table caption belongs to outer table item and it should not be generated as a part of chart reportlet.

Error log:n/a
Comment 1 Liwen Chen CLA 2008-01-02 20:49:17 EST
Created attachment 86045 [details]
report
Comment 2 Wei Yan CLA 2008-01-02 21:47:01 EST
BIRT shouldn't output the reportlet's parent content.
Comment 3 Gang Liu CLA 2008-02-04 22:23:55 EST
need more time to fix this bug
Comment 4 Wei Yan CLA 2008-02-22 04:24:06 EST
It is hard to fix this issue by removing the parent of reportlet especially if the reportlet is not a complete element, as a ROW/GROUP etc.

If the reportlet is a complete element, BIRT should remove its parent and output it direclty. All styles should be merged to the reportlet.

If the reportlet is not a complete element, BIRT should output the missed container(such as TABLE/ROW etc), all the parent style should be applied to the parent element.

Comment 5 Wei Yan CLA 2008-03-23 23:34:40 EDT
defer to future release
Comment 6 Wenfeng Li CLA 2008-06-09 20:23:07 EDT
(In reply to comment #4)
> It is hard to fix this issue by removing the parent of reportlet especially if
> the reportlet is not a complete element, as a ROW/GROUP etc.
> If the reportlet is a complete element, BIRT should remove its parent and
> output it direclty. All styles should be merged to the reportlet.
> If the reportlet is not a complete element, BIRT should output the missed
> container(such as TABLE/ROW etc), all the parent style should be applied to the
> parent element.

Instead of merging the style, can engine still keep the style at the container level, but output the container as an invisible HTML container?

Is there a generic style holder HTML container, such as <div> that can be used to contain the child reportlet without output the content of the containing report item?
Comment 7 Alexander Gurov CLA 2008-07-20 05:23:11 EDT
*** Bug 241179 has been marked as a duplicate of this bug. ***
Comment 8 Jandor Bian CLA 2009-01-16 00:14:15 EST
Fixed, now we only output reportlet itself, do not output its parents anymore.
Comment 9 Tianli Zhang CLA 2009-01-19 02:27:48 EST
Parent output is not displayed, verified in 2.5.0 v20090119-0630 build. Mark as verified.