Skip to main content



      Home
Home » Archived » BIRT » Setting Visibility at Runtime
Setting Visibility at Runtime [message #47962] Sun, 19 June 2005 09:13 Go to next message
Eclipse UserFriend
Originally posted by: jainrahul_16.rediffmail.com

Hi Everyone,
I am trying to set a table invisible (if the corresponding query returns
no record), and display "No Records Found !" instead.

I tried using the 'visibility' option but I could not figure out how to
insert a tag in the design file at RUNTIME at the appropriate location
which would set the table invisible.

Any help would be greatly appreciated.
Thanks a lot

Rahul
Re: Setting Visibility at Runtime [message #48432 is a reply to message #47962] Mon, 20 June 2005 16:46 Go to previous messageGo to next message
Eclipse UserFriend
I too would be interesting in information on how this might be
accomplished (though I haven't really looked into it at all) :D



Rahul Jain wrote:
> Hi Everyone,
> I am trying to set a table invisible (if the corresponding query returns
> no record), and display "No Records Found !" instead.
>
> I tried using the 'visibility' option but I could not figure out how to
> insert a tag in the design file at RUNTIME at the appropriate location
> which would set the table invisible.
>
> Any help would be greatly appreciated.
> Thanks a lot
>
> Rahul
>
Re: Setting Visibility at Runtime [message #50122 is a reply to message #48432] Wed, 22 June 2005 23:56 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

This use case has been thought of while designing the Table/List report item,.
one way of doing it would be

- Add a label element to the table header or footer, with text = "No records
found"
- Define the visibility rule on the lablel, hide in all views , with
expression= Total.count > 0

Let me know if this works.

--Rima Kanguri


Mike Boyersmith wrote:

> I too would be interesting in information on how this might be
> accomplished (though I haven't really looked into it at all) :D
>
> Rahul Jain wrote:
> > Hi Everyone,
> > I am trying to set a table invisible (if the corresponding query returns
> > no record), and display "No Records Found !" instead.
> >
> > I tried using the 'visibility' option but I could not figure out how to
> > insert a tag in the design file at RUNTIME at the appropriate location
> > which would set the table invisible.
> >
> > Any help would be greatly appreciated.
> > Thanks a lot
> >
> > Rahul
> >
Re: Setting Visibility at Runtime [message #50214 is a reply to message #50122] Thu, 23 June 2005 02:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: juergen.schwarz.gefasoft.de

Rima Kanguri schrieb:
> Hi,
>
> This use case has been thought of while designing the Table/List report item,.
> one way of doing it would be
>
> - Add a label element to the table header or footer, with text = "No records
> found"
> - Define the visibility rule on the lablel, hide in all views , with
> expression= Total.count > 0
>
> Let me know if this works.

I tried this for the visibility of the table, but the Total.count seems
not to be recognized.
Re: Setting Visibility at Runtime [message #50752 is a reply to message #50214] Thu, 23 June 2005 15:04 Go to previous messageGo to next message
Eclipse UserFriend
Juergen Schwarz wrote:

> Rima Kanguri schrieb:
> > Hi,
> >
> > This use case has been thought of while designing the Table/List report item,.
> > one way of doing it would be
> >
> > - Add a label element to the table header or footer, with text = "No records
> > found"
> > - Define the visibility rule on the lablel, hide in all views , with
> > expression= Total.count > 0
> >
> > Let me know if this works.
>
> I tried this for the visibility of the table, but the Total.count seems
> not to be recognized.

Juergen,
-- One minor correction above, the right expression syntax is Total.count() > 0,
-- Visibility of the table should work
-- Return type of Total.count() is numeric, looks like there is a bug, if the number
of records are 0, Total.count() returns null. I will log a bug in bugzilla.

--Rima
BIRT Committer.
Re: Setting Visibility at Runtime [message #51136 is a reply to message #50752] Fri, 24 June 2005 02:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: juergen.schwarz.gefasoft.de

Thanks a lot, this works!

How did you know the Total.count()? I could not find it in the list of
available object in the report designer.


Rima Kanguri schrieb:
>
> Juergen Schwarz wrote:
>
>
>>Rima Kanguri schrieb:
>>
>>>Hi,
>>>
>>>This use case has been thought of while designing the Table/List report item,.
>>>one way of doing it would be
>>>
>>>- Add a label element to the table header or footer, with text = "No records
>>>found"
>>>- Define the visibility rule on the lablel, hide in all views , with
>>>expression= Total.count > 0
>>>
>>>Let me know if this works.
>>
>>I tried this for the visibility of the table, but the Total.count seems
>>not to be recognized.
>
>
> Juergen,
> -- One minor correction above, the right expression syntax is Total.count() > 0,
> -- Visibility of the table should work
> -- Return type of Total.count() is numeric, looks like there is a bug, if the number
> of records are 0, Total.count() returns null. I will log a bug in bugzilla.
>
> --Rima
> BIRT Committer.
>
Re: Setting Visibility at Runtime [message #61306 is a reply to message #51136] Fri, 22 July 2005 20:06 Go to previous messageGo to next message
Eclipse UserFriend
This works for Table/List but can we do something similar to Chart?

I keep getting this error message when there is no data:
There are errors on the report page:
Error1:Failed to render Chart
The dataset used by the Chart is invalid

Thanks,
-l.t.
Re: Setting Visibility at Runtime [message #61460 is a reply to message #61306] Mon, 25 July 2005 00:34 Go to previous message
Eclipse UserFriend
Hi,

Please log a bug in bugzilla.

Thanks.
--Rima
Previous Topic:report parameter of type date/time causes problem
Next Topic:"invalid design file" ?
Goto Forum:
  


Current Time: Mon Jul 14 04:16:45 EDT 2025

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

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

Back to the top