Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Dropped elements still being rendered(Elements dropped in beforeFactory are still being rendered in the render task.)
Dropped elements still being rendered [message #854020] Mon, 23 April 2012 15:15 Go to next message
Steve Schafer is currently offline Steve Schafer
Messages: 22
Registered: December 2009
Junior Member
Hi,

This is a strange problem. I am using the run and render task separately. In some of my reports I'm dropping some tables in the beforeFactory event, like this:

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

Some times, but not always, the render task still tries to render the dropped elements. I can tell this from logging in onPrepare, onCreate and onRender of the table. The table doesn't get prepared or created but onRender is still called, resulting in errors because the renderer cannot find the data in the report document.

This doesn't always happen, but when it does happen it's consistent for a given report. If I use IRunAndRender, the problem does not occur.

Any thoughts about why this might be happening?

Thanks
Re: Dropped elements still being rendered [message #854337 is a reply to message #854020] Mon, 23 April 2012 22:13 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Steve

This looks like it may be a bug. Can you reproduce with a sample report?

Jason

On 4/23/2012 11:15 AM, Steve Schafer wrote:
> Hi,
>
> This is a strange problem. I am using the run and render task
> separately. In some of my reports I'm dropping some tables in the
> beforeFactory event, like this:
>
> reportContext.getDesignHandle().findElement("details_table").drop();
>
> Some times, but not always, the render task still tries to render the
> dropped elements. I can tell this from logging in onPrepare, onCreate
> and onRender of the table. The table doesn't get prepared or created but
> onRender is still called, resulting in errors because the renderer
> cannot find the data in the report document.
>
> This doesn't always happen, but when it does happen it's consistent for
> a given report. If I use IRunAndRender, the problem does not occur.
> Any thoughts about why this might be happening?
>
> Thanks
>
Previous Topic:Set a variable using the output of a SQL query
Next Topic:org.eclipse.birt.report.data.oda.jdbc.JDBCException: SQL statement does not return a ResultSet objec
Goto Forum:
  


Current Time: Fri Sep 19 07:51:50 GMT 2014

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

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