CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Sorting if you have custom SQL

Print topic Send  topic

Author Message
Jeff Swanson
Posted: 07/24/2002, 1:41 PM

CC 2.x, PHP, mySQL

I have noticed that I cannot "Allow Sorting" if I use custom SQL statements. Any way around this? The SQL statements I use, get the data the way that I want, but I also want the user to be able to click on the top of a column to resort by that column. Here is my SQL statement:

SELECT `rookies`.`yes_no`,
`race_stats`.`kart_no`,
`drivers`.`name`,
SUM( `race_stats`.`final_points` ) AS total_points
FROM `race_stats`
INNER JOIN `rookies` ON (`race_stats`.`rookie` = `rookies`.`rookie`)
INNER JOIN `drivers` ON (`race_stats`.`racer_id` = `drivers`.`racer_id`)
WHERE
(
(`drivers`.`class_id` = 1)
)
GROUP BY `rookies`.`yes_no`, `race_stats`.`kart_no`, `drivers`.`name`


Anything?
Nicole
Posted: 07/26/2002, 4:50 AM

Jeff,
as far as you use custom sql, you add custom code to form Open event to be able to sort on the table columns. The code is similar to one that is generated by CC. You can take it as sample one from any generated grid form.

   


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.