Skip to main content



      Home
Home » Archived » 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 11:15 Go to next message
Eclipse UserFriend
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 18:13 Go to previous message
Eclipse UserFriend
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: Sun Jul 13 23:44:29 EDT 2025

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

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

Back to the top