Use this event to
Exclude specific Output lines from being displayed at mobile device.
Description
You may use the event to exclude specific Production Journal, Type::Output lines from being displayed at the mobile device.
Unlike other OrderLists at the mobile device, due to the implementation (reusing standard functions to calculate Production Journal) no "_OnSetFilter"-event is availble for this list.
Template
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Lookup", 'OnLookupOnProdOutput_OnIncludeProductionOutput', '', true, true)]
local procedure OnLookupOnProdOutput_OnIncludeProductionOutput(_ProdOrderLine: Record "Prod. Order Line"; _ProdOrderRtngLine: Record "Prod. Order Routing Line"; var _IncludeInOrderLines: Boolean)
begin
end;
Example
// [Example] Hide all operations if final operation is fully output (standard will allow further output even when everything is produced accordingly to the Prod. Order Line)
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Lookup", 'OnLookupOnProdOutput_OnIncludeProductionOutput', '', true, true)]
local procedure MyOnLookupOnProdOutput_OnIncludeProductionOutput(_ProdOrderLine: Record "Prod. Order Line"; _ProdOrderRtngLine: Record "Prod. Order Routing Line"; var _IncludeInOrderLines: Boolean)
begin
if _ProdOrderLine."Remaining Quantity" = 0 then
_IncludeInOrderLines := false;
end;
More examples
-
Case: Filter Receipts based on Comments — The user wants to filter Receipts on whether they have comments or not
-
How-to: Filter Order Lines — Examples of filtering Order Lines .
-
How-to: Filter Orders - Complex — Examples for including/excluding orders using complex per-document filtering
Version History
Version | Changes |
---|---|
MOB5.22 | Introduced |