Table of contents



Official Content

This event is activated immediately after the Commit is executed.

Syntax

Event After Trn
        Event_code
EndEvent

Where:

Event_code
    Code defined inside the event.

Scope

Objects: Transaction
Generators: .NET, Java, RPG, Cobol

Description

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.

Samples

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

See Also

AfterComplete Triggering event


   

Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant