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 -> Tips & Solutions

 Hiding a grid without running the select

Print topic Send  topic

Author Message
ari_block

Posts: 11
Posted: 05/01/2007, 10:47 AM

Reports and grids show results by default even if you did not select filters
add this code to the before execute select of you grid control to not show the grid

$obj->DataSource->CountSQL = "";
$v_transactions->DataSource->SQL = "";
$obj->Visible = false;

if you wana show the grid only after clicking a button and not right away

1. add a hidden to your form name=show value=show
2. add this code to before execute select of you grid

$obj = $my_grid_name;
if(CCGetParam("show")!="show")
{
$obj->DataSource->CountSQL = "";
$v_transactions->DataSource->SQL = "";
$obj->Visible = false;
}


please note there is no straight forward way to do this, and this code may not work with next version of CC if YES Software change the inner working....
this code exploites a flow in the CCS...

happy hunting.
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.