Hi
Searching for a solution to insert a record in grid in automatic mode after change focus on a single field ( in this case the field name is “barcode” ), i’ve found this javascript than run very well
[INDENT]function sc_barcode_onchange()
{
var n = F1.elements[“sc_contr_vert”].value;
n = (n - 1);
findPos(this);
nm_atualiza_line(‘incluir’, n);
document.F1.barcode.focus();
}
[/INDENT]
but now my problem is: how to put the focus on the first field of a grid after insert done in the way described before? I tried this but does not work
[INDENT]function sc_form_onload()
{
document.F1.barcode.focus();
}
[/INDENT]
Someone has already dealt with a similar problem? The environment is SC 7.0.009
Giorgio