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

 removing "SELECT COUNT(*) FROM..."

Print topic Send  topic

Author Message
Koren

Posts: 83
Posted: 03/11/2007, 1:36 PM

Can I remove the CCS "SELECT COUNT(*) FROM..." on my grids in a couple of pages?
I see that I can comment them out in the filename.php page, but I hate to mess with the auto genterated code if at all possible.

FYI: the reason I need to remove them is because I am using custom SQL to generate the statements to render the grids and it doesn't alter the SELECT COUNT which, in turn, produces "Database Error: Unknown table " errors.
View profile  Send private message
ejay

Posts: 17
Posted: 03/12/2007, 12:51 AM

suppose you grid is named "mygrid"

in your php program, just where you define your custom sql, like this : $mygrid->datasource->SQL="select custom sql...";
add another line that defines a custom sql to count records, like this:

$mygrid->datasource->CountSQL="your custom sql that counts records";

_________________
Eric Jay
web solutions using CodeCharge studio
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.