Skip to main content



      Home
Home » Archived » BIRT » How to avoid script evaluation errors on empty data sets
How to avoid script evaluation errors on empty data sets [message #190855] Mon, 18 September 2006 12:26 Go to next message
Eclipse UserFriend
I have a report I want to adjust when a subsection has no data in the
data set. I have set "visibility rules" using the Total.count() function.

However, the sections have headers/footers that analyze the data using
Total.sum(), Total.min(), and Total.max() and it appears these scripts
are run even when the "visibility rules" turn off the display of the
results. I think this may be due to the two-pass generate / present
lifecycle of a BIRT report.

How do I turn off these calculations? Is there a rule to apply (Map)?
Do I need to code the Total.count() condition check into the script? If
so, could someone provide an example?

Thanks for your help,

- Jim

P.S. In reviewing the newsgroup, I noticed a similar post by Catalina
on 9/13/2006.
Re: How to avoid script evaluation errors on empty data sets [message #190871 is a reply to message #190855] Mon, 18 September 2006 13:19 Go to previous message
Eclipse UserFriend
Okay, as always, when you ask a question to a newsgroup you get prepared
to answer questions. I forgot an important detail that I went back to
document - namely, the problem only arises when I am running the reports
from my Tomcat server and not from within Eclipse BIRT.

In the process of getting prepared, here's what I found:

* When I run the report from Eclipse, the URL used to launch the report
(linked from a summary report) starts http://<host:port>/viewer/run?......

When I run the report from my Tomcat server, the URL used to launch the
report starts http://<host:port>/viewer/frameset?.....

* The report has no Table of Contents.

The problem only arises in the viewer/frameset?.... launch of the report
which occurs when the summary report is launched with frameset.

So, I know how to fix the problem in the short term but not really the
underlying cause of the problem. I am going back to read the newsgroup
entries under the frameset threads.

I would be interested in anyone's explanation of the difference and
whether this should be entered as a bug against BIRT's runtime viewer.

The power of "news group" therapy ;-)

- Jim


Jim Tremlett wrote:
> I have a report I want to adjust when a subsection has no data in the
> data set. I have set "visibility rules" using the Total.count() function.
>
> However, the sections have headers/footers that analyze the data using
> Total.sum(), Total.min(), and Total.max() and it appears these scripts
> are run even when the "visibility rules" turn off the display of the
> results. I think this may be due to the two-pass generate / present
> lifecycle of a BIRT report.
>
> How do I turn off these calculations? Is there a rule to apply (Map)?
> Do I need to code the Total.count() condition check into the script? If
> so, could someone provide an example?
>
> Thanks for your help,
>
> - Jim
>
> P.S. In reviewing the newsgroup, I noticed a similar post by Catalina
> on 9/13/2006.
Previous Topic:Error while buiding BIRT
Next Topic:java.lang.NoClassDefFoundError: com/ibm/icu/text/NumberFormat
Goto Forum:
  


Current Time: Fri Jul 25 01:51:24 EDT 2025

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

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

Back to the top