Versions Compared

Key

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

Use this event to

Excerpt

Modify properties for any single step when registering Production Output Time.

...

OnGetRegistrationConfigurationOnProdOutput_OnAddStepsToProductionOutput

OnGetRegistrationConfigurationOnProdOutput_OnAddStepsToProductionOutputQuantityOnAddStepsToProductionOutputTime


Description

This event is executed once for every step added from OnGetRegistrationConfigurationOnProdOutput_OnAddStepsToProductionOutput or OnGetRegistrationConfigurationOnProdOutput_OnAddStepsToProductionOutputQuantityOnAddStepsToProductionOutputTime.

You may use this event to change any property of the step or hide the step.

...

    /// <param name="_RegistrationType">'ProdOutputTime' = Called from Adhoc Action; 'ProdOutput' = Called from element list by clicking the element</param>
    [EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Adhoc Registr.", 'OnGetRegistrationConfigurationOnProdOutput_OnAfterAddStepToProductionOutputTime', '', true, true)]
    localprocedure OnGetRegistrationConfigurationOnProdOutput_OnAfterAddStepToProductionOutputTime(_RegistrationType: Text; var _LookupResponse: Record "MOB NS WhseInquery Element"; var _Step: Record "MOB Steps Element")
    begin
    end;


Example - Hide SetupTime step when called from elements list by clicking the element (but must still be visible when called from Adhoc Action)

    [EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Adhoc Registr.", 'OnGetRegistrationConfigurationOnProdOutput_OnAfterAddStepToProductionOutputTimeOnAfterAddStepToProductionOutputScrap', '', true, true)]
    localprocedure MyOnGetRegistrationConfigurationOnProdOutput_OnAfterAddStepToProductionOutputTimeOnAfterAddStepToProductionOutputScrap(_RegistrationType: Text; var _LookupResponse: Record "MOB NS WhseInquery Element"; var _Step: Record "MOB Steps Element")
    var
        MobWmsToolbox: Codeunit "MOB WMS Toolbox";
    begin
        if (_RegistrationType = MobWmsToolbox."CONST::ProdOutput"()) and (_Step.Get_name() = 'SetupTime') then
            _Step.Set_Visible('false');
    end;


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


Version History

VersionChanges
MOB5.
38
39Introduced