Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Sum Elements in Grid(How to sum two data items in grid?)
Sum Elements in Grid [message #780689] Wed, 18 January 2012 23:37 Go to next message
Bryan Jasso is currently offline Bryan Jasso
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 374 times)
  • Attachment: 2.gif
    (Size: 18.12KB, Downloaded 366 times)
Re: Sum Elements in Grid [message #780690 is a reply to message #780689] Wed, 18 January 2012 23:48 Go to previous messageGo to next message
Bryan Jasso is currently offline Bryan Jasso
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 00:04 Go to previous messageGo to next message
Bryan Jasso is currently offline Bryan Jasso
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 06:09 Go to previous messageGo to next message
Bryan Jasso is currently offline Bryan Jasso
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 14:15 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
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 103 times)


Jason Weathersby

BIRT Exchange
Re: Sum Elements in Grid [message #780946 is a reply to message #780882] Fri, 20 January 2012 00:58 Go to previous message
Bryan Jasso is currently offline Bryan Jasso
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: Wed Apr 16 06:45:55 EDT 2014

Powered by FUDForum. Page generated in 0.12078 seconds