Skip to main content



      Home
Home » Archived » BIRT » onCreate error(onCreate error)
onCreate error [message #1831668] Wed, 26 August 2020 05:42 Go to next message
Eclipse UserFriend
I have two images that I want to display according to a value from the dataset/dynamic text in the report. I am getting errors when trying to do it.

if(this.getRowData().getExpressionValue("row[price]") == "$30" )
this.imageName = "check.JPG";
else
this.imageName = "unchecked.JPG";
The error:

org.eclipse.birt.report.engine.api.EngineException: There are errors evaluating script "if(this.getRowData().getExpressionValue("row[price]") == "$30" ) this.imageName = "check.JPG"; else this.imageName = "unchecked.JPG";": TypeError: Cannot call method "getExpressionValue" of null (/report/body/image[@id="84"]/method[@name="onCreate"]#1)
Re: onCreate error [message #1833955 is a reply to message #1831668] Wed, 28 October 2020 15:17 Go to previous message
Eclipse UserFriend
The error you are getting is because you have null values in your dataset. You should check for nulls in your if statement first, then check for your price.
Previous Topic:Date parameter not working Date=any date
Next Topic:New Page Output per unique ID/Column
Goto Forum:
  


Current Time: Wed Apr 30 20:40:52 EDT 2025

Powered by FUDForum. Page generated in 0.06884 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top