Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Sum Elements in Grid(How to sum two data items in grid?)
Sum Elements in Grid [message #780689] Thu, 19 January 2012 04:37 Go to next message
Bryan Jasso is currently offline Bryan JassoFriend
Messages: 14
Registered: January 2012
Junior Member
index.php/fa/6786/0/

Couldn't find how to sum two data items.

index.php/fa/6787/0/

Maybe I can do it using Name or Element ID?
Thanks.
  • Attachment: 1.gif
    (Size: 114.45KB, Downloaded 1386 times)
  • Attachment: 2.gif
    (Size: 18.12KB, Downloaded 1324 times)
Re: Sum Elements in Grid [message #780690 is a reply to message #780689] Thu, 19 January 2012 04:48 Go to previous messageGo to next message
Bryan Jasso is currently offline Bryan JassoFriend
Messages: 14
Registered: January 2012
Junior Member
Found how to sum parameters.
For example: params["BGName"].value+params["BGName"].value

But coudn't find how to sum elements of grid (data items) Sad
Re: Sum Elements in Grid [message #780691 is a reply to message #780689] Thu, 19 January 2012 05:04 Go to previous messageGo to next message
Bryan Jasso is currently offline Bryan JassoFriend
Messages: 14
Registered: January 2012
Junior Member
It's impossible in BIRT to get element value using its name or id?
Re: Sum Elements in Grid [message #780783 is a reply to message #780689] Thu, 19 January 2012 11:09 Go to previous messageGo to next message
Bryan Jasso is currently offline Bryan JassoFriend
Messages: 14
Registered: January 2012
Junior Member
This is a very difficult task, or Birt is not designed to calculate the sum of two items?
Re: Sum Elements in Grid [message #780882 is a reply to message #780783] Thu, 19 January 2012 19:15 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Just use a data item and add the two. See attached example.
row["Aggregation"]+row["Aggregation_1"]

Jason

On 1/19/2012 6:09 AM, Bryan Jasso wrote:
> This is a very difficult task, or Birt is not designed to calculate the
> sum of two items?
  • Attachment: sumgrid.zip
    (Size: 2.27KB, Downloaded 291 times)
Re: Sum Elements in Grid [message #780946 is a reply to message #780882] Fri, 20 January 2012 05:58 Go to previous message
Bryan Jasso is currently offline Bryan JassoFriend
Messages: 14
Registered: January 2012
Junior Member
Thank you very much. It seems now I understand how it works. I should use Binding.
My first project Smile
Previous Topic:Tutorial on using BIRT in RCP application
Next Topic:BIRT reports security issue with database password (odaPassword)
Goto Forum:
  


Current Time: Fri Apr 19 19:00:17 GMT 2024

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

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

Back to the top