Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Use this event to

Excerpt

TODO

Description

...

Template

...

Example

...

Exclude specific Output lines from being displayed on the mobile device.

Description

You may use the event to exclude specific Production Journal, Type::Output lines from being displayed at the mobile device.

Template

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Lookup", 'OnLookupOnProdOutput_OnIncludeProductionOutput''', true, true)]
    local procedure OnLookupOnProdOutput_OnIncludeProductionOutput(var _RequestValues: Record "MOB NS Request Element"; _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(var _RequestValues: Record "MOB NS Request Element"; _ProdOrderLine: Record "Prod. Order Line"; _ProdOrderRtngLine: Record "Prod. Order Routing Line"; var _IncludeInOrderLines: Boolean)
    begin
        if _ProdOrderLine."Remaining Quantity" = 0then
            _IncludeInOrderLines := false;
    end;



Filter by label (Content by label)
showLabelsfalse
showSpacefalse
sorttitle
titleMore examples
excerptTypesimple
cqllabel = "bc" and label = "production" and label = "example" and label = "oninclude"

  

Version History

VersionChanges
MOB5.22Introduced
MOB5.45RequestValues added as a parameter