Hi,
I check some records in a list page,
i have a custom button to send emails to the checked records and set the field "sended" with the "Y" value.
In after record processed i test the sended valute to hide grid_checkbox:
if ($data['sended']=="Y"{
$pageObject->hideItem("grid_checkbox", $recordId);
}
In the server of the custom button i have
...... code to send email
//after send i update the sended field
$data3 = array();
$keyvalues3 = array();
$data3["sended"] = "Y";
$keyvalues3["idassi"] = $idassi;
DB::Update("customers",$data3,$keyvalues3);
in the client After of the custom button i have :
location.reload();
all works fine: the emails are sended, the grid_checkbox's are hidden after the list page is reloaded,
but if a click again on the custom button the emails are re-sended to the previous checked records
how may i uncheck autonatically the grid_checkboxs before hiding them?
thanks
Fabio