Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » How to dynamically remove or disable a chart (or other element)?
How to dynamically remove or disable a chart (or other element)? [message #769668] Thu, 22 December 2011 13:56 Go to next message
Mike Wulkan is currently offline Mike WulkanFriend
Messages: 147
Registered: July 2009
Senior Member
Depending on the contents of the data, I have reports that currently hide or show various chart elements. However, even when the chart is hidden, it still does it's processing. I'd like to conditionally eliminate the entire element so that the report does not incur the performance penalty for the chart that is not shown.
Is there an easy way to do this?
Re: How to dynamically remove or disable a chart (or other element)? [message #769787 is a reply to message #769668] Thu, 22 December 2011 17:01 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Mike

You can drop any element but it has to be done in the beforeFactory,
which is probably sooner than you will want it to be because you do not
have access to the report data.

To drop, just name the element and use:

reportContext.getDesignHandle().findElement("yourelementname").drop();

Jason

On 12/22/2011 8:56 AM, Mike Wulkan wrote:
> Depending on the contents of the data, I have reports that currently
> hide or show various chart elements. However, even when the chart is
> hidden, it still does it's processing. I'd like to conditionally
> eliminate the entire element so that the report does not incur the
> performance penalty for the chart that is not shown.
> Is there an easy way to do this?
Re: How to dynamically remove or disable a chart (or other element)? [message #814617 is a reply to message #769668] Tue, 06 March 2012 17:19 Go to previous messageGo to next message
Daniel Cárdenas is currently offline Daniel CárdenasFriend
Messages: 5
Registered: March 2012
Junior Member
I have the same problem, I have two rows but I need show only one. I use visibility but birt process both.

Did you found a solution?
Re: How to dynamically remove or disable a chart (or other element)? [message #814618 is a reply to message #769668] Tue, 06 March 2012 17:19 Go to previous messageGo to next message
Daniel Cárdenas is currently offline Daniel CárdenasFriend
Messages: 5
Registered: March 2012
Junior Member
I have the same problem, I have two rows but I need show only one. I use visibility but birt process both.

Did you found a solution?
Re: How to dynamically remove or disable a chart (or other element)? [message #814619 is a reply to message #769668] Tue, 06 March 2012 17:19 Go to previous messageGo to next message
Daniel Cárdenas is currently offline Daniel CárdenasFriend
Messages: 5
Registered: March 2012
Junior Member
I have the same problem, I have two rows but I need show only one. I use visibility but birt process both.

Did you found a solution?
Re: How to dynamically remove or disable a chart (or other element)? [message #814620 is a reply to message #769668] Tue, 06 March 2012 17:20 Go to previous messageGo to next message
Daniel Cárdenas is currently offline Daniel CárdenasFriend
Messages: 5
Registered: March 2012
Junior Member
I have the same problem, I have two rows but I need show only one (depending data content). I use visibility but birt process both.

Did you found a solution?
Re: How to dynamically remove or disable a chart (or other element)? [message #814622 is a reply to message #769668] Tue, 06 March 2012 17:22 Go to previous messageGo to next message
Daniel Cárdenas is currently offline Daniel CárdenasFriend
Messages: 5
Registered: March 2012
Junior Member
I have the same problem, I have two rows but I need show only one (depending data content). I use visibility hide but birt always process.

Did you found a solution?
Re: How to dynamically remove or disable a chart (or other element)? [message #814639 is a reply to message #769668] Tue, 06 March 2012 17:55 Go to previous messageGo to next message
Mike Wulkan is currently offline Mike WulkanFriend
Messages: 147
Registered: July 2009
Senior Member
No sorry, never got beyond Jason's recommendation. I really think BIRT should have two types of visibility settings. The first type as it is now that simply controls whether the control shows or not but still performs any required background processing; and the second one where no processing for the element is done at all.
Re: How to dynamically remove or disable a chart (or other element)? [message #814644 is a reply to message #814639] Tue, 06 March 2012 18:04 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Mike,

I think this would make a good enhancement request. Do you mind logging
a bugzilla entry for this? Another option would be to call the data
engine api in the beforeFactory to determine which elements to drop
based on data from a data source.

Jason

On 3/6/2012 12:55 PM, Mike Wulkan wrote:
> No sorry, never got beyond Jason's recommendation. I really think BIRT
> should have two types of visibility settings. The first type as it is
> now that simply controls whether the control shows or not but still
> performs any required background processing; and the second one where no
> processing for the element is done at all.
Previous Topic:complex pivot table
Next Topic:how to create dependent component in the same report
Goto Forum:
  


Current Time: Fri Mar 29 04:46:36 GMT 2024

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

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

Back to the top