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 -> General/Other

 grid problem with aggregate function in mysql view

Print topic Send  topic

Author Message
dang

Posts: 11
Posted: 03/21/2008, 12:57 AM

Hi

I'm doing something very simple: Creating a view that Sum few fields in a table. The view is stored as in MySql 5.0.25 database. If I do a check all records are well Sum. So far, so good.

In CCS 3.2.0.4, I generate a grid that will display all those records. But when I execute the webpage, no records is shown.

In the view procedure, I remove all the Sum and let just the normal fields. Recompile the view and execute again the same web page. It work well.

Conclusion: It seems there is a problem with CCS when adding function into view.

It's seems odd for me that CCS could not display that.

Below, the Sql view:
CREATE ALGORITHM=UNDEFINED DEFINER=abc_user@% SQL SECURITY DEFINER VIEW new_view AS
select
t.dataid AS dataid,
t.datano AS datano,
sum(t.datapj) AS sumdatapj
from
t
group by
t.dataid,t.datano;

By removing the line with «Sum» it's work well.

Does anybody have a clue how to solve this problem?
_________________
Dan
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.

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.