This event is activated immediately after the Commit is executed.
Event After Trn
Event_code
EndEvent
Where:
Event_code
Code defined inside the event.
Objects: Transaction
Generators: .NET, Java, RPG, Cobol
This event is activated once the Transaction has ended / completed a cycle. That is, right after executing the Commit.
If in the same Transaction object there are rules defined with the AfterComplete Triggering event, these are executed first and then the After Trn Event is executed.
Consider the following Transaction object:
Invoice
{
InvoiceId*
InvoiceDate
InvoiceDescription
InvoiceTotalAmount
}
You may want to call a PDF report after executing the commit and, after that, close the Transaction screen and return to the calling GeneXus object:
Event After Trn
ListInvoice(InvoiceId) //The attributes that belong to the first level of the Transaction are available even after the commit
Return
EndEvent
AfterComplete Triggering event