|
Re: Difference on ReportDesignHandle between onPrepare and beforeFactory [message #366442 is a reply to message #366436] |
Tue, 30 December 2008 22:23 |
Eclipse User |
|
|
|
Originally posted by: jasonweathersby.alltel.net
Loïc,
I believe it is getting a cloned version of the design handle.
Can you log a bug for this?
Jason
Loïc Bertholet wrote:
> Hi all,
>
> I want to dynamically add columns on a Table.
>
> I tried on the beforeFactory(...) method of ReportEventHandler and
> everything is alright.
> Then I tried on the onPrepare(...) method of TableEventHandler with the
> same code but it didn't work.
>
> It both case, I use the following code to get the TableHandle :
> (TableHandle) reportContext.getDesignHandle().findElement("myTableName")
>
> With the debugger, I saw that I have the same instance of reportContext
> in each method. But the ReportDesignHandle behind is not the same... I
> guess this is why I don't have the same final result.
>
> But is it normal or is it a bug ?
> Or maybe I don't use the good way to get the TableHandle on the
> onPrepare(...) method ?
>
> Thanks,
>
> Loïc
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.02701 seconds