|
|
|
|
|
|
|
|
Re: NullPointerException on charts after upgrade from 2.5.2 tp 3.7.2 [message #899927 is a reply to message #899921] |
Thu, 02 August 2012 17:55  |
Eclipse User |
|
|
|
In the designer are you previewing in the WebViewer? BTW, I do not
think setPersistent works in onRender because that commands writes into
the rptdocument and was designed to be used at run time so at render
time (maybe different time or machine) the render engine could get a
variable stored at run time. You may want to look at using
setGlobalVariable at render time which makes a variable global to the phase.
You could also throw in a script like:
importPackage( Packages.java.io );
out = new PrintWriter( new FileWriter( "c:/test/events.txt", true ) );
out.println( "in my render event");
out.close();
Just to check if the event is being called. The onRender should be
getting called.
Jason
On 8/2/2012 5:00 PM, Plamen Todorov wrote:
> OK, onCreate is working onRender doesn't seem to work.
> It seems the event is not being called at all since the same variable is
> being overwritten multiple times in different charts, and still causing
> NPE in each one. I'm puzzled why this happens only at runtime.
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04475 seconds