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

Use this event to

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


See also:

OnGetRegistrationConfigurationOnProdOutput_OnAddStepsToProductionOutput

OnGetRegistrationConfigurationOnProdOutput_OnAddStepsToProductionOutputTime


Description

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

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

Template

    /// <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)]
    local procedure 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_OnAfterAddStepToProductionOutputTime', '', true, true)]
    local procedure MyOnGetRegistrationConfigurationOnProdOutput_OnAfterAddStepToProductionOutputTime(_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;


More examples


Version History

VersionChanges
MOB5.38Introduced



  • No labels