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