Home
Designing Analytics Reports
Custom Java cannot be accessed from Dataset queries
Migrateduser
<p><span style="font-size:12pt;">Hi,</span></p>
<p> </p>
<p><span style="font-size:12pt;">I'm using a Java method that I wrote to set a BIRT variable.</span></p>
<p><span style="font-size:12pt;">I wrote the class, packed it in a JAR, added it to the project's Classpath and it works fine.</span></p>
<p> </p>
<p><span style="font-size:12pt;">However, when I'm using the variable as the default value for a query parameter in a dataset (vars["myVariable"]) it does not work. The variable value is evaluated to null.</span></p>
<p><span style="font-size:12pt;">For other variables (which do not involve custom Java classes) it also works fine, but it seems that the Classpath JAR is ignored in this specific case when the code is in a dataset query script.</span></p>
<p> </p>
<p><span style="font-size:12pt;">I'm using BIRT Designer 4.5.0.v201506092134.</span></p>
<p><span style="font-size:12pt;">Any help or idea will be appreciated.</span></p>
<p> </p>
<p><span style="font-size:12pt;">Thanks!</span></p>
Find more posts tagged with
Comments
There are no comments yet