Setting Visibility at Runtime [message #47962] |
Sun, 19 June 2005 09:13  |
Eclipse User |
|
|
|
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 #50752 is a reply to message #50214] |
Thu, 23 June 2005 15:04   |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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.
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05579 seconds