Hide a column in runtime [message #155028] |
Thu, 20 April 2006 21:50  |
Eclipse User |
|
|
|
Originally posted by: riannacmw.yahoo.com.hk
Hi,
I want to hide a column in a report at runtime. What I do is to set
visibility for the column according to a parameter passing at runtime. I
have 3 columns in the report, column1, column2, column3. My method work to
hide a column.
The problem is if column2 is hidden, there is empty space left between
column1 and column3. The emtpy space is the column2. How can I shrink
column2 if it is invisible?
Rianna
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Hide a column in runtime [message #159964 is a reply to message #159835] |
Wed, 10 May 2006 15:52   |
Eclipse User |
|
|
|
Ahh...the dilemma! I have some columns that should be narrow, and others
that should be wide. If specify column-widths, then my report looks nice,
but when the user selects a column to hide, the table-width does not shrink
(groan). If I do not specify column-widths, then the report looks ugly
(groan) but when the user selects a column to hide, the table-width shrinks
nicely. You can't have it both ways!
The remedy is to allow column-widths to be set at runtime. Looks like an
enhancement request to me.
"birt_user" <birt_user@yahoo.com> wrote in message
news:12487745.1147282466489.JavaMail.root@cp1.javalobby.org...
> Yes, when the column disappeared, the table width also shrank.
> Also, I tried without setting the Visibility condition and included "Data"
> expression on both the header and the detail rows. When the expression
> does not return any value(based on the conditional expression), the table
> displays with the rest of the columns and completely hides this column and
> shrinks the table width.
>
> I am using BIRT 2.0.1 version.
|
|
|
|
Powered by
FUDForum. Page generated in 0.07739 seconds