CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 summing with alternate rows?

Print topic Send  topic

Author Message
travel-net

Posts: 56
Posted: 10/11/2004, 6:45 AM

hello,

I'm trying to sum a field, but the outcome gives bad values.

In my bind events i have placed.

$klant_abonn_tbl->sum_bedrag->CCSEvents["BeforeShowRow"] = "klant_abonn_tbl_sum_bedrag_BeforeShowRow";

And then in the BeforeShowRowEvent

$klant_abonn_tbl->sum_bedrag->SetValue($klant_abonn_tbl->sum_bedrag->GetValue() + $klant_abonn_tbl->abo_bedrag->GetValue() + $klant_abonn_tbl->a_abo_bedrag->GetValue() );

I played with different placings and setting etc. but i'm lost.

Regards,
Frans
View profile  Send private message
klwillis


Posts: 428
Posted: 10/11/2004, 7:16 AM

Summing several fields and then placing the results in a final
calculated field should work.

Did you make sure to set the field data type to either Float or Integer.




_________________
Kevin Willis, VP/CIO
HealthCare Information Technology Specialist
http://www.nexushealthcare.com
"Fast - Convenient - Quality-Care"

Medical Software Consulting Services
Email : klwillis@nexushealthcare.com
Skype : klwillis2006
View profile  Send private message
frans
Posted: 10/11/2004, 11:57 PM

Yes, type is float. I had it in other pages, but this one isn't.

Regards,
Frans
klwillis


Posts: 428
Posted: 10/12/2004, 6:19 PM

So, you solved the problem? ;-)

Quote frans:
Yes, type is float. I had it in other pages, but this one isn't.

Regards,
Frans
;-)
_________________
Kevin Willis, VP/CIO
HealthCare Information Technology Specialist
http://www.nexushealthcare.com
"Fast - Convenient - Quality-Care"

Medical Software Consulting Services
Email : klwillis@nexushealthcare.com
Skype : klwillis2006
View profile  Send private message
Frans
Posted: 10/12/2004, 11:55 PM

No, Alex A from YesSupport is looking at it.:-)

regards,
Frans

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.

Web Database

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.