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
Script engine error: TypeError: Cannot read property <anything> from null
Migrateduser
Hi All,<br />
<br />
I have a data element in a report and the expression is string row["field1"]. I run the report and the element returns data.<br />
<br />
I try to use row["field1"].split() or row["field1"].length or any javascript against the string row["field1"] and it throws an error when I run the report.<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>org.eclipse.birt.report.engine.api.EngineException: A BIRT exception occurred. See next exception for more information.
Error evaluating Javascript expression. Script engine error: TypeError: Cannot read property "length" from null
Script source: null, line: 0, text:
<compiled script> (Element ID:3265)
at org.eclipse.birt.report.engine.executor.ExecutionContext.addException(ExecutionContext.java:1237)
at org.eclipse.birt.report.engine.executor.ExecutionContext.addException(ExecutionContext.java:1216)
at org.eclipse.birt.report.engine.executor.QueryItemExecutor.executeQuery(QueryItemExecutor.java:96)
at org.eclipse.birt.report.engine.executor.TableItemExecutor.execute(TableItemExecutor.java:62)</pre>
<br />
Any idea why I can't use javascript in this expression?
Find more posts tagged with
Comments
There are no comments yet