Now that you have created the commuter module to trap your promoted event you need to copy the object code to the SYSREPOSEVENTEXES table. The object code of a stored procedure is stored in SYSOBJ. This needs to be copied to SYSREPOSEVENTEXES with the record ID that promotes all window GOTFOCUS Events to be handled by this procedure. This is where OpenInsight expects to find the promoted event code. To do this type the following in the EXEC line in the System Editor:

RUN COPY_ROW SYSOBJ , $PE_GOTFOCUS_SHELL*EXAMPLES, SYSREPOSEVENTEXES , EXAMPLES*GOTFOCUS..OIWIN*

Now the promoted event code is ready to fire. Next we need to create the function to perform the necessary processing.

  • No labels