編輯

共用方式為


OnPostDataItem (Report Data Item) trigger

Version: Available or changed with runtime version 1.0.

Runs after a data item is processed.

Syntax

trigger OnPostDataItem()
begin
    ...
end;

Remarks

This trigger runs after the last record in the data item is processed but before the OnPostReport Trigger or the OnPostXMLport Trigger is executed, if it is the last data item of the report or XMLport.

Use this trigger to perform any cleanup or post processing needed after a data item is processed. For example, if you create a non-printing report where records are updated, you can update all the records with the modification date like shown in the example below.

ModifyAll("Modification Date",TODAY);   

Get Started with AL
Developing Extensions