Grid with page break, Visibility and TOC [message #154827] |
Thu, 20 April 2006 09:30  |
Eclipse User |
|
|
|
Originally posted by: renaud.denis.sysmedit.be
Hello,
I've got a report with several sections. Each of these have a header (a
label) and a content (generally a table).
+--
| Header x (Label)
+--
| Content x (Table)
+--
I would want to make these secions "maskable", so I wrapped it into a
1x1 grid, set a page break before, and set the visibility attribute of
the grid, relative to a report parameter.
+---
| Grid x (1x1 with page break and visibility parameter)
|+--
|| Header x (Label)
|+--
|| Content x (Table)
|+--
+---
My problems are:
- when the content of a section is greater than one page, BIRT PDF
emitter generate my section's header on the bottom of a blank page,
beggining the content of the section on the next page.
- the sections are not visible when the right parameter is true, but
blank pages are generated instead.
- finally, how can I set a toc item for each of my sections, wrapping
the content's TOC?
Thank you,
Renaud Denis
|
|
|
|
|
|
Re: Grid with page break, Visibility and TOC [message #159054 is a reply to message #154888] |
Mon, 08 May 2006 08:42  |
Eclipse User |
|
|
|
I have a smiliar problem.
We generate reports made of nine categories.
The user can select the categories he wants to see before generation
of the report. Depending on the selected categories, the report engine
shows/hides the corresponding grids.
Each category shows one or more sections, each of them being displayed
in a grid. Each section matches a dataset (the datasource is a java
Vector containing the datasets).
For each section, the report engine displays a title, a message if no
data has been received, another message if an error occured during
data retrieval, and a table or a list displaying the data. Each of
these four items is hidden if they don't have to be shown (no error
-> no error message). The section grid can eventually, if the user
didn't select it, be hidden.
The report design is a little similar to yours:
For each category, a grid (with 'visibility' based on the fact the
category has been selected).
+-------
+ Category1 grid (with visibility test)
+-------
+ +------
+ + Section1 grid (with a visibility test depending on the dataset)
+ +------
+ + Title
+ + Error message (with visibility test
+ + "No data" message (with visibility test)
+ + Data (usually in a table or list, with visibility test)
+ +------
+ +------
+ + Section2 grid (with a visibility test)
+ +------
+ + Title
+ + Error message (with visibility test
+ + "No data" message (with visibility test)
+ + Data (usually in a table or list, with visibility test)
+ +------
+
+ etc...
+
+-------
+-------
+ Category2 grid (with visibility test)
+-------
+ etc...
+-------
Since all the logic of showing/hiding the pieces of the report rely on
the 'Visibility' property of the grids and/or tables, I can't get the
table outside the gridS.
And I have horrible PDF layout problems trying to use birt 2...
Unfortunately, we need it to display page numbers...
So, if anyone has news about this issue (the way Birt 2 handles the
page breaks isn't the same as Birt 1), I am very very interested!
:)
On Thu, 20 Apr 2006 15:03:59 +0000 (UTC), ceol.gael@gmail.com
(Cristian) wrote:
>Hi. I'll try to answer to your first two problems:
>1. I had the same problem, the solution I found was to get the table
>outside the grid.
>2. Use the following code in OnPrepare method of that object you want to
>hide:
>
>if(params["visibilityparam"]==true)
> this.getStyle().display="none";
>else
> this.getStyle().display="block";
>
>it hides that element, but if you have a single page with only that
>element in it, then you'll got a blank page.
>
>Hope this will help you.
>
>Cristian
|
|
|
Powered by
FUDForum. Page generated in 0.03193 seconds