Skip to main content



      Home
Home » Archived » BIRT » Best Way to Hide and Disable a Chart/Table?
Best Way to Hide and Disable a Chart/Table? [message #257695] Tue, 09 October 2007 11:53 Go to next message
Eclipse UserFriend
Hi,

I have a report consisting of 6 charts and 6 tables. Only one chart and
table combination is visible at a time depending on the parameters the
user selects. I am able to use the Visibility to functionality to hide
elements. But the problem is that even though the element is hidden, the
query still executes. So I'm having 12 queries execute when only 2 would
suffice.

I tried dropping the chart/table in the Visibility expression but it
still executes the query

if(params["OrderGroup"] == "ALLORDERS" && params["MeasuredBy"] =="QUANTITY")
{
false;
}
else
{
reportContext.getReportRunnable().designHandle.getDesignHand le().findElement( "NewChart2").drop();
true;
}

I then tried putting the drop statement in the beforeFactory event of
the report and it worked. Is that the best place to "drop" elements/to
do what I want to do?

Thanks
Re: Best Way to Hide and Disable a Chart/Table? [message #257856 is a reply to message #257695] Wed, 10 October 2007 16:03 Go to previous message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

beforeFactory is the best place.

Jason

Raishad wrote:
> Hi,
>
> I have a report consisting of 6 charts and 6 tables. Only one chart and
> table combination is visible at a time depending on the parameters the
> user selects. I am able to use the Visibility to functionality to hide
> elements. But the problem is that even though the element is hidden, the
> query still executes. So I'm having 12 queries execute when only 2 would
> suffice.
>
> I tried dropping the chart/table in the Visibility expression but it
> still executes the query
>
> if(params["OrderGroup"] == "ALLORDERS" && params["MeasuredBy"]
> =="QUANTITY")
> {
> false;
> }
> else
> {
> reportContext.getReportRunnable().designHandle.getDesignHand le().findElement( "NewChart2").drop();
>
> true;
> }
>
> I then tried putting the drop statement in the beforeFactory event of
> the report and it worked. Is that the best place to "drop" elements/to
> do what I want to do?
>
> Thanks
Previous Topic:max rows within crosstab
Next Topic:lower - upper case in column names are a problem
Goto Forum:
  


Current Time: Thu May 01 11:43:24 EDT 2025

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

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

Back to the top