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