Hi
I 've a grid with a query. It’s working.
In onscriptinit I include this:
if ($vcondition!=’’){
if (empty({sc_where_current}))
{
sc_select_where(add) = "where ".$vcondition;
}
else
{
sc_select_where(add) = "AND ".$vcondition;
}
}
and the result is:
select count(*) from (SELECT … FROM table WHERE initial_condition ) nm_sel_esp where tipo_documento = ‘14’ (this last part is added via sc_select_where)
It’s not changing where clause…why not?
I use SC 9.9.024