I am using oracle forms 6i

I am in a scenario where i need to execute a trigger on - 'ON-DISPATCH-EVENT' of an ActiveX control-

The PL/SQL code to be executed contains keywords like next_record, commit , go_block

On run time when the trigger is executed i get an error:
FRM-40737 Illegal restricted procedure NEXT_RECORD in ON-DISPATCH_EVENT trigger

Please suggest a workaround...