Skip to main content



      Home
Home » Archived » BIRT » Reg:How to display No data found message(Urgent pls)
Reg:How to display No data found message(Urgent pls) [message #115306] Wed, 25 January 2006 04:57 Go to next message
Eclipse UserFriend
Originally posted by: buday.metrikus.com

Hi,

How to display a message such as "No data found" if the result of a query
gives no data?

pls help me in this aspect
Re: Reg:How to display No data found message(Urgent pls) [message #115941 is a reply to message #115306] Wed, 25 January 2006 07:36 Go to previous message
Eclipse UserFriend
There may be an easier way of doing this, but one way is to:

In the initialize script put a variable like
rwcnt = 0;

In the onFetch script of the data set put
rwcnt += 1;

Then on the table that uses the data click on the visibility property and
enter the following expression
if( rwcnt == 0 ){
true;
}else{
false;
}

This will hide the table. You can then put a label on the report below the
table that says "No Data Available"
and put the exact opposite visibility expression.

Another option is to set a mapping entry on the table that has the
expression
if( rwcnt == 0)
then display
No Data

Hope this helps

Jason Weathersby
BIRT PMC



"Suma latha" <buday@metrikus.com> wrote in message
news:73d82f19e6195f96535a2fb8067aa054$1@www.eclipse.org...
>
> Hi,
>
> How to display a message such as "No data found" if the result of a query
> gives no data?
>
> pls help me in this aspect
>
>
Previous Topic:Excel in BIRT
Next Topic:PDF output broken since upgrade to 2.0RC2
Goto Forum:
  


Current Time: Tue Jul 22 22:10:03 EDT 2025

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

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

Back to the top