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

Version 1 Next »

Use this event to

Filter Production Order Routing Lines in Production Output to be displayed at 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



  • No labels