Skip to main content



      Home
Home » Archived » BIRT » Calculate a row value in a script(Which method on which report element do you use to calculate the value of a column in a row?)
Calculate a row value in a script [message #723636] Thu, 08 September 2011 23:17 Go to next message
Eclipse UserFriend
If you wish to calculate a value to be displayed in each row of a report, based on other values in the row and some other data, which method do you use? To which data element do you attach the script or Java event handler?
Re: Calculate a row value in a script [message #723794 is a reply to message #723636] Fri, 09 September 2011 09:59 Go to previous messageGo to next message
Eclipse UserFriend
If I'm understanding what you're trying to do, you could just add a computed column in your dataSet or add a new binding to your table and do your scripting in the expression builder. If you're for sure wanting to access this from script, you'll need to use the onCreate script in the detail row. The onPrepare doesn't have access to the data. Hope this helps.

Regards,

Michael

Contributor on
http://www.birt-exchange.org
Re: Calculate a row value in a script [message #724018 is a reply to message #723794] Sat, 10 September 2011 07:06 Go to previous message
Eclipse UserFriend
Does the onCreate in the detail row enable you to alter or set the value of the computed column?
Previous Topic:Help!!! Issue with flat data file
Next Topic:Dynamically change line chart or bar chart with on-screen slider
Goto Forum:
  


Current Time: Thu Jul 24 16:53:21 EDT 2025

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

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

Back to the top