CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 [SOLVED] - Getting SQL String

Print topic Send  topic

Author Message
Animetal

Posts: 27
Posted: 06/06/2009, 7:42 AM

I'm typing some custom expressions in SQL query and I want to see how CCS its sending it,

Is theres any way when I hit the search button can I see the query with the actual values from the search grid?

Maybe printing in the html body this is just for debuggin the query...

Thanks
View profile  Send private message
melvyn


Posts: 333
Posted: 06/06/2009, 9:29 AM

Place a custom code in the event AfterExecuteSelect:
$sql = $Container->ds->OptimizeSQL(CCBuildSQL($Container->ds->SQL, $Container->ds->Where, $Container->ds->Order));  
echo $sql;

It will show the query at the start of the page.

Melvyn
_________________
Melvyn Perez
Puro Codigo
http://purocodigo.com
View profile  Send private message
Animetal

Posts: 27
Posted: 06/06/2009, 9:49 AM

Thank you, that help me alot
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.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.