Execute a function javascript en a grid detail

Hi, i am testing a form type grid with javacript, but is do not work.
I have a app master-detail, when i tested javacript in form master it works fine, but when i tested grid datail, it do not works.

i put this code in JAVACRIPT - FORM - ONLOAD

function pressenter(e) {
var keycode;
if (window.event) {
keycode = window.event.keyCode; // IE
}else keycode = e.which; // FF

if (keycode == 13) {
document.F1.ved_cntdad.value = 10;
return false;
} else return true;
}

document.F1.ved_dscnto.onkeypress=pressenter;

  • My question is if Javascript works in mode master - detail?

🚀 Scriptcase 9.12 is now available! Check out the new features here 👉🚀 Next Monday (02/24), Scriptcase 9.12 will be released! Check out the new features before anyone else 👉