|
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 |
|
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 #814644 is a reply to message #814639] |
Tue, 06 March 2012 18:04 |
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.02965 seconds