Hi,
I have created a grid and there is a run button. Basically, I need to tick on the checkbox for the records I wanted and when clicked on the run button, a field will auto update.
In the grid > event > onScriptInit:
[i] = 0;
[total_chked] = array();
In the button > onRecord: $arr=[i];
[arr_vl][$arr]={id};
[i]++;
$invoice=‘INV001’;
sc_exec_sql(“UPDATE purchase SET invoice=’$invoice’ WHERE id = ‘{id}’”);
In the button > onFinish:
[tot] = [arr_vl];
The above code I hardcorded the invoice number but I need that when the user tick on the checkbox for the records and click run button, there is a prompt for them to enter the invoice number.
Can anyone kindly advise? Thanks.