Skip to main content



      Home
Home » Archived » BIRT » BIRT 2.1RC2 - visibility problem with Total.count() - totalCountNOK.rptdesign (0/1)
BIRT 2.1RC2 - visibility problem with Total.count() - totalCountNOK.rptdesign (0/1) [message #162168] Thu, 18 May 2006 04:02 Go to next message
Eclipse UserFriend
Hello.

I was using BIRT 1.0 to generate PDF reports, and we are rolling over
to BIRT2.1RC2.
To hide:show sections of the report depending on the fact that some
data are present or not, I used 'Total.count() > 0' or 'Total.count()
== 0' in the table 'Visibility' property.
Unfortunately, this doesn't seem to work any more in BIRT 2.1RC2: as
you can see using the attached report, both tables are shown (the
table showing the data is shown even if there is no data, previously
handled by Total.count()==0, and the table showing the 'no data'
message is also shown, even if Total.count() > 0).

Any idea? Or do I have to use something else than Total.count() with
BIRT2.1RC2?

Thanks.

Frédéric
Re: BIRT 2.1RC2 - visibility problem with Total.count() - totalCountNOK.rptdesign (0/1) [message #162225 is a reply to message #162168] Thu, 18 May 2006 05:43 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I have had the exactly the same problem like you. All you have to do is to
wait for RC3 or have a shot with recent nightly build where the problem is
fixed (though other things are not stable in there).

Have a look at this bug report:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=136506

Tomas

"Frederic Ferrant" <frederic@ferrant.be> p
Re: BIRT 2.1RC2 - visibility problem with Total.count() - totalCountNOK.rptdesign (0/1) [message #163234 is a reply to message #162225] Sat, 20 May 2006 14:03 Go to previous messageGo to next message
Eclipse UserFriend
RC3 will handle 2.0 reports that use Total.count() in the Visibility
property. However, if you create a 2.1 report, you cannot use the technique
you used in 2.0. The new procedure is:

1) At the table level, create a new column binding, for example,
Total_Count. Then under Expression, specify Total.count().

2) Create a label (or whatever) element whose visibility property you want
to set.

3) Set the visibility expression to row["Total_Count"] != 0

As you can see, step 1 is the new step.

"Tomas Vala" <tomas.vala@samo.cz> wrote in message
news:e4hfhb$5bd$1@utils.eclipse.org...
> Hi,
>
> I have had the exactly the same problem like you. All you have to do is to
> wait for RC3 or have a shot with recent nightly build where the problem is
> fixed (though other things are not stable in there).
>
> Have a look at this bug report:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=136506
>
> Tomas
>
> "Frederic Ferrant" <frederic@ferrant.be> p
Re: BIRT 2.1RC2 - visibility problem with Total.count() - totalCountNOK.rptdesign (0/1) [message #163311 is a reply to message #163234] Mon, 22 May 2006 05:16 Go to previous message
Eclipse UserFriend
Thanks a lot for your advise. I see RC3 was released recently so I'll put
myself into testing this new version soon :)

Tomas

"Diana Peh" <diana.peh@actuate.com> p
Previous Topic:Row border of a Table
Next Topic:DOC or RTF Emitter for Birt
Goto Forum:
  


Current Time: Tue Jul 01 05:29:14 EDT 2025

Powered by FUDForum. Page generated in 0.29614 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top