Use this event to
...
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS History", 'OnLookupOnHistory_OnIncludeItemLedgerEntry', '', true, true)]
localprocedure OnLookupOnHistory_OnIncludeItemLedgerEntry(_ItemLedgerEntry: Record"Item Ledger Entry"; var _IncludeInLookup: Boolean)
begin
end;
Example
// [Example]: Exclude from response if Quantity is more than 1.
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS History", 'OnLookupOnHistory_OnIncludeItemLedgerEntry', '', true, true)]
localprocedure MyOnLookupOnHistory_OnIncludeItemLedgerEntry(_ItemLedgerEntry: Record"Item Ledger Entry"; var _IncludeInLookup: Boolean)
begin
if _ItemLedgerEntry.Quantity >1then
_IncludeInLookup:=false;
end;
Filter by label (Content by label) showLabels false showSpace false sort title title More examples excerptType simple cql label = "bc" and label = "oninclude" and label = "example"
showLabels | false |
---|---|
showSpace | false |
sort | title |
title | More examples |
excerptType | simple |
cql | label = "bc" and label = "oninclude" and label = "example" |
Version History
Version | Changes |
---|---|
MOB5.45 | Introduced |