Auto submit record in editable grid form

How do I auto submit (add) record in editable grid form after a specified field? My talble has these fields : part_no, descrip, quan, price, total, cost. And I want the form to auto add record after on_event : price_blur.

On SC7, I use the following javascript method :

var n = F1.elements[“sc_contr_vert”].value;
n = (n - 1);
findPos(this);
nm_atualiza_line(‘incluir’, n);
document.F1.partno.focus();

and it worked.

But SC9 form doesn’t seem do work. Please help.