Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Use this event to

Add filter conditions for Output lines from Production Journal.

Description

You may use the event to exclude specific 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::CodeunitCodeunit::"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::CodeunitCodeunit::"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

There are no items with the selected labels at this time.

  

Version History

VersionChanges
MOB5.22Introduced
  • No labels