I want to save records in a form editable grid automatically when all fields of a record are populated. Clicking on the standard save button fires code like this:
nm_atualiza_line('incluir',1);
To automatically save the record, I can use this code in javascript onchange events. Problem is that I don’t know how to determine the (internal) ID of the current record. I can find this ID when checking the generared code, but I need to determine the ID at runtime.
When focus is on record 1, I want to execute nm_atualiza_line(‘incluir’,1);
When focus is on record 2, I want to execute nm_atualiza_line(‘incluir’,2);
When focus is on record 3, I want to execute nm_atualiza_line(‘incluir’,3);
(mind that when deleting record 2, the 3rd records keeps ID 3)
Any ideas?