I’m trying to build a run button that when pressed change the value of a field of the selected records, but I have some problems with the sc_exec_sql
I currrently have
$arr=[i];
[total_chked][$arr]={OT};
[i]++;
sc_exec_sql ( UPDATE ‘CABECERA OT’ SET ‘ORDEN CERRADA’ = ‘1’ WHERE OT={OT});
The field ORDEN CERRADA is a YES/NO Field and CABECERA OT is the table that generates the grid
Thanks in advance