CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 sum(column) through ajex

Print topic Send  topic

Author Message
nitin2mishra

Posts: 3
Posted: 06/14/2011, 1:05 AM

Hi all,
I am trying to find sum(column) through ajex in php, but i am not geting the code that is written in ccs .php, How to calculate sum of column using ajex in CCS.

_________________
Nitin Mishra
View profile  Send private message
tfertil

Posts: 43
Posted: 07/01/2011, 4:04 PM

Hi nitin2mishra,

First: we need to know if your talking about summing a column in a grid or in a report.

In a report, the parsing process replaces the item "placeholder" with the value from the database, so theres no "item" for you to access and sum in JavaScript.

What I did in some cases is to use a GRID instead of a report, using text labels in all my fields, except the ones I want to sum.

Then I use the init_Elements() CCS function to bring me access to the fields so I can loop and sum it in JavaScript.

Maybe this can be helpfull for you?

Regards,
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.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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