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 3 Next »

Use this event to

TODO

Description

TODO

Template

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Adhoc Registr.", 'OnPostAdhocRegistrationOnProdOutput_OnAfterCreateProductionJnlLine''', true, true)]
    local procedure OnPostAdhocRegistrationOnProdOutput_OnAfterCreateProductionJnlLine(var _RequestValues: Record "MOB NS Request Element"; var _ProductionJnlLine: Record "Item Journal Line")
    begin
    end;

Example

    // [Example]  Populate Production Journal "Stop Code" from custom step
    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Adhoc Registr.", 'OnPostAdhocRegistrationOnProdOutput_OnAfterCreateProductionJnlLine''', true, true)]
    local procedure MyOnPostAdhocRegistrationOnProdOutput_OnAfterCreateProductionJnlLine(var _RequestValues: Record "MOB NS Request Element"; var _ProductionJnlLine: Record "Item Journal Line")
    var
        StopCode: Code[10];
    begin
        Evaluate(StopCode, _RequestValues.GetValue('MyCustomStopCode', true));
        if StopCode <> '' then
            _ProductionJnlLine.Validate("Stop Code", StopCode);
    end;



More examples

  

Version History

VersionChanges
MOB5.22Introduced
  • No labels