Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Javascript Error
liaojinmei
I dynamically created a report design in my web app, part of the report is an image, here is that part of the code:
String imageUri = "/core/cache/test/testImg.png";
ImageHandle imageHandle = efactory.newImage("chartImage"+datasetName);
imageHandle.setURL(imageUri);
design.getBody().add(imageHandle);
When I run this report, the image is displayed correctly in the report, but the browser still shows a javascript error that reads:
"The following items have errors:
ReportDesign (id = 1):
+ There are errors evaluating script "/core/cache/test/testImg.png":
invalid flag after regular expression (<inline>#1).
birt.core.JavascriptCommonError ( 1 time(s) )
detail : org.eclipse.birt.report.engine.api.EngineException: There are errors evaluating script "/core/cache/test/testImg.png":
invalid flag after regular expression (<inline>#1).
at org.eclipse.birt.report.engine.executor.ExecutionContext.addException(ExecutionContext.java:1121)
at org.eclipse.birt.report.engine.executor.ExecutionContext.addException(ExecutionContext.java:1073)
at org.eclipse.birt.report.engine.executor.ImageItemExecutor.execute(ImageItemExecutor.java:108)
at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplicateItemExecutor.execute(SuppressDuplicateItemExecutor.java:42)
at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.execute(WrappedReportItemExecutor.java:45)
at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReportItemExecutor.execute(LocalizedReportItemExecutor.java:33)
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:63)
at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:90)
at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:101)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:151)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:72)
..."
Please help!!!!!
Find more posts tagged with
Comments
Rapporter
Hi liaojinmei,
did you find any solution to your problem. I am facing it too.
regards,
Surabhi