CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Calculate the sum of rows

Print topic Send  topic

Author Message
wayne186

Posts: 30
Posted: 04/01/2004, 10:14 AM

I am looking for a way to calculate the sum of a specific column and automatically entering that number at the bottom to show a total. For example I do a search on how many items were sold that day and each has a cost, I can return all the rows without a problem but I was after a way of adding up all of those rows in a column returned.

Is there a way to do this? Please also consider that I am not a clever chap when it comes to hand coding and if I can do it and stay inside the gui then great. If not then I will appreciate any guidance offered.

cheers

Wayne
View profile  Send private message
peterr


Posts: 5971
Posted: 04/01/2004, 1:56 PM

You may want to take a look at the Order Entry example in CCS Example Pack.
It is also shown online at http://examples.codecharge.com/ExamplePack/OrderEntry/O....php?order_id=3
The order total is calculated dynamically and shown on the "Total" line.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.