OnLookupOnProdOutput_OnSetFilterProdOrderRoutingLine

Use this event to

Filter Production Order Routing Lines in Production Output to be displayed on the mobile device.

Description

With this event, you can perform basic record filtering of Production Order Routing lines in Production Output.

Template

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Lookup", 'OnLookupOnProdOutput_OnSetFilterProdOrderRoutingLine''', true, true)]
    local procedure OnLookupOnProdOutput_OnSetFilterProdOrderRoutingLine(var _RequestValues: Record "MOB NS Request Element"; var _ProdOrderRtngLine: Record "Prod. Order Routing Line")
    begin
    end;

Example

    // [Example] Filter lines after Starting Date.

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Lookup", 'OnLookupOnProdOutput_OnSetFilterProdOrderRoutingLine''', true, true)]
    local procedure MyOnLookupOnProdOutput_OnSetFilterProdOrderRoutingLine(var _RequestValues: Record "MOB NS Request Element"; var _ProdOrderRtngLine: Record "Prod. Order Routing Line")
    begin
        _ProdOrderRtngLine.SetFilter("Starting Date", '<=%1', WorkDate());
    end;



More examples

Version History

VersionChanges
MOB5.45Introduced