Home
Analytics
alert();
Eric Davis
<p>I've searched the forums and can't find a straight answer. I want to put an alert in so I can see the value of a field, but I keep getting errors. Any suggestions?</p>
Find more posts tagged with
Comments
micajblock
<p>I use something like this:</p>
<div>
<pre class="_prettyXprint">
// Example of logging for debugging. Messages will appear in the error log.
logger = java.util.logging.Logger.getLogger("birt.report.logger");
logger.warning ('onCreateCrosstab');</pre>
</div>
Eric Davis
<p>Thanks, I'll give it a try.</p>
micajblock
<p><span style="font-family:arial, helvetica, sans-serif;">So today I learned something new. Apparently the logger is only available in commercial BIRT, Thank you Clement Wong.</span></p>
<p> </p>
<p><span style="font-family:arial, helvetica, sans-serif;"><span style="font-size:10pt;">For debugging in OS BIRT, launch eclipsec.exe. That’s with a “c†at the end of eclipse for “console†so that you’ll have two windows – one with Eclipse, and the other a command line window to see the messages.</span></span></p>
<p> </p>
<p><span style="font-family:arial, helvetica, sans-serif;"><span style="font-size:10pt;">Then, you can use: </span></span></p>
<pre class="_prettyXprint">
java.lang.System.out.println(“Hello worldâ€);</pre>
<p><span style="font-family:arial, helvetica, sans-serif;"><span style="font-size:10pt;">Another option is to write to a log file like in the image attached.</span></span></p>
<p style="margin-left:.5in;"> </p>
<p style="margin-left:.5in;"> </p>
<p style="margin-left:.5in;"> </p>
<p style="margin-left:.5in;"> </p>
<p style="margin-left:.5in;"> </p>
Eric Davis
<p>Thanks Mica.</p>