Page History
...
This is the DEFINE_EVENT block in Form B:
...
define_evt name(employee_created)
...
define_map *input class(#empno) name(#this_emp)
FormB also has a SIGNAL command which signals that the event has been triggered and passes the employee number of the new employee to the event routine:
...
signal event(employee_created) this_emp(#empno)
The owner form of Form B has an event routine for the employee_created event which receives the employee number and maps it to a variable #TheValue and then assigns this value to field #empno on the owner form.
...
EVTROUTINE HANDLING(#FormB.employee_created) this_emp(#TheValue)
...
set com(#empno) value(#TheValue)
...
ENDROUTINE