Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
Resource folder images and data set parameter bindings
Migrateduser
<p>Hi,</p><p> </p><p>I am trying to display an image located in the shared resources based on the results of a DB query.</p><p> </p><p>The Data Set that the image is bound to is set. However this Data Set has parameter bindings that are dependent on another database result. I have those bindings set correctly as they work if I am simply displaying a text field, but when I change it to an image I get an error.</p><p>This is what I have defined for the "Image file in shared resources" option:</p><p> </p><div><pre class="_prettyXprint">if (row["RESULT"] == "PASS"){"pass.png";} else if (row["RESULT"] == "FAIL"){"fail.png";} else if (row["RESULT"] == "SKIP"){"skip.png";}</pre></div><div> </div><div>but I am getting this error when the report is being rendered:</div><div><pre class="_prettyXprint">Caused by: org.eclipse.birt.report.engine.api.EngineException: Error happened while running the report. at org.eclipse.birt.report.engine.api.impl.EngineTask.handleFatalExceptions(EngineTask.java:2363) at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:191) at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:77) at org.eclipse.birt.report.service.ReportEngineService.runAndRenderReport(ReportEngineService.java:937) ... 38 moreCaused by: java.lang.IllegalArgumentException at sun.net.www.ParseUtil.decode(Unknown Source) at sun.net.www.protocol.file.Handler.openConnection(Unknown Source) at sun.net.www.protocol.file.Handler.openConnection(Unknown Source) at java.net.URL.openConnection(Unknown Source) at java.net.URL.openStream(Unknown Source)</pre></div><div>Any help would be appreciated!</div>
Find more posts tagged with
Comments
There are no comments yet