Hide a column in runtime [message #155028] |
Fri, 21 April 2006 01: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 #155347 is a reply to message #155028] |
Fri, 21 April 2006 15:31 |
|
Are you talking about PDF or HTML output?
Jason
"Rianna" <riannacmw@yahoo.com.hk> wrote in message
news:24034b23c9b13d95d51ec2f5a94d4e6a$1@www.eclipse.org...
> 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 #158883 is a reply to message #158251] |
Fri, 05 May 2006 19:24 |
Eclipse User |
|
|
|
Originally posted by: birt_user.yahoo.com
I am also having a similar problem:
When I select a column in my table and open the Script tab, it says "This
element has no methods".
Please advise.
|
|
|
|
|
Re: Hide a column in runtime [message #159160 is a reply to message #159140] |
Mon, 08 May 2006 19:49 |
Eclipse User |
|
|
|
Originally posted by: birt_user.yahoo.com
Thanks for the help! When I set the visibility condition individually on the header "label" cell and the detail "data" cells it worked fine. I chose the "Visibility" property - selected the checkbox to "Hide Element" , "For all outputs". I used the same expression to evaluate (either "true" or "false") on both the cells. The column (header + detail rows) then disappeared in runtime, based on the return value of the expression.
|
|
|
|
Re: Hide a column in runtime [message #159835 is a reply to message #159599] |
Wed, 10 May 2006 17:33 |
Eclipse User |
|
|
|
Originally posted by: birt_user.yahoo.com
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.
|
|
|
Re: Hide a column in runtime [message #159964 is a reply to message #159835] |
Wed, 10 May 2006 19:52 |
Stan Jordan Messages: 31 Registered: July 2009 |
Member |
|
|
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.03723 seconds