Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

3.   Add this statement to declare an oEmp object  which will be used to pass the employee number:

   var oEmp = new Object();
 
Your code should look like this:

Image Modified
 
4.   Then locate the statement handling the pressing of the Enter key (KeyEnter).

5.   Add this statement before the SENDKEY statement to retrieve the value of the employee number of the new employee to the oEmp object:

oEmp.empno = GETVALUE("txtEmpno");
 
 
6.   Change the SENDKEY function to pass the employee number payload:

SENDKEY(KeyEnter, oEmp);
 
 Your code will look like this:

Image Modified
 
7.     Commit the changes.

...