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

Bug 325461

Summary: Empty Subgroup bookmarks when exporting to PDF
Product: z_Archived Reporter: David <dldeveloper21>
Component: BIRTAssignee: Birt-Report-inbox <Birt-Report-inbox>
Status: CLOSED WORKSFORME QA Contact: Xiaoying Gu <bluesoldier>
Severity: normal    
Priority: P3 CC: bluesoldier, jouyang, yChen
Version: 2.6.0   
Target Milestone: 3.7.0   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Screenshot of PDF with issue none

Description David CLA 2010-09-16 09:12:28 EDT
When exporting a report to PDF, subgroups without a value still have a bookmark created for them and there is no way to suppress these bookmarks.  Please see the attached screenshot with red arrows pointing to the bookmarks that need to be suppressed.
Comment 1 David CLA 2010-09-16 09:13:20 EDT
Created attachment 179029 [details]
Screenshot of PDF with issue
Comment 2 Yu Chen CLA 2010-10-15 04:12:04 EDT
Suppressing these empty bookmarks may be not the right way.

If these bookmarks do not have their destinations, what's the point to create them out? 

If they have their destinations, they should be assigned readable display names. Right? If we simply suppress these empty bookmarks, the users will not be able to jump to the destinations where these empty bookmarks point to, and the Table Of Content hierarchy is actually broken. Another case we have to consider is one empty bookmark have nonempty child bookmarks. If so, we can't hide it even it is empty.

I don't think this is a bug. The report designer has the duty to ensure the bookmark has a readable display name. 

If I missed anything, please correct me.
Comment 3 David CLA 2010-10-19 14:10:35 EDT
The case I brought up is where a parent group does not have any child group data but there is still an unnecessary bookmark created for the child group.  For example some sample data below for a report:

---------------------
Subject A
MISSING MEASUREMENT
5.6
6.2
MISSING DATE
10/19/2010


Subject B

---------------------

I would want bookmarks created for Subject A and Subject B but since Subject B doesn't have any child group data, no subgroup bookmark should be created for Subject B.  Since Subject A has two child groups of discrepancies (MISSING MEASUREMENT and MISSING DATE) a bookmark for each of these should be created.  A sample layout of the bookmark layout I'd be expecting is below:

-Subject A
  |--MISSING MEASUREMENT 
  |--MISSING DATE
-Subject B


However, currently there is still an empty subgroup bookmark being created under Subject B even though there is no data for the child group...like below:

-Subject A
  |--MISSING MEASUREMENT 
  |--MISSING DATE
-Subject B
  |--                        <--Extra bookmark here
Comment 4 Yu Chen CLA 2010-10-19 23:40:32 EDT
Could you please attach the report design?

Does the "Extra bookmark" under "Subject B" point to some content?
Comment 5 Jun Ouyang CLA 2010-11-25 04:18:42 EST
No response, set as worksforme.