Parameter Data > Inline Triggers
  
Inline Triggers
QXtend provides in-line triggers for some business objects. You can define your own inline triggers for your application as required.To create an inline trigger:
1 At the top of the program, add the qxodef.i include file to the variable definitions section at the top of the program.
2 Determine all the places in the code that require an event to be raised. Add a call to the fireOutboundEvent procedure. The parameters are different depending on whether you are using QAD SE or above, or MFG/PRO eB2 or below:
QAD SE and above
run fireOutboundEvent (input 'SupplierMaintenance',
input 'vd_mstr',
input rowid(vd_mstr),
input oid_vd_mstr,
input 'DELETE').
The parameters are:
Event name (character)
Table name (character)
Rowid of the record (rowid)
OID of the record (decimal)
Event type, either WRITE or DELETE (character)
MFG/PRO eB2 and below
run fireOutboundEvent (input 'SupplierMaintenance',
input 'vd_mstr',
input rowid(vd_mstr),
input 'DELETE').
The parameters are:
Event name (character)
Table name (character)
Rowid of the record (rowid)
Event type, either WRITE or DELETE (character)