OnPreDataItem (Report Data Item) trigger

Version: Available or changed with runtime version 1.0.

Runs before a data item is processed.

Syntax

trigger OnPreDataItem()
begin
    ...
end;

Remarks

This trigger is run before a data item is processed, but after the associated variable is initialized and table views and filters are set.

You can use this trigger to add additional filtering beyond what is established by the DataItemLink Property (Reports) or DataItemTableView Property. For example, use this trigger if you need to filter an indented data item based on the result of a calculation. Use the SetRange Record or SetFilter Record to add extra delimiters.

Get Started with AL
Developing Extensions