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
-
Case: Default total RunTime based on produced quantity in Production Output — A customer wants the RunTime step for Production Output to be populated with a default value.
-
How-to: Online Validation for Line step — Online Validation on Steps can instantly validate the user data, with a call to BC.
-
How-to: Online Validation for Unplanned Step — "onlineValidation" on Steps can instantly validate the entered data, with a call to the back-end
-
How-to: Production Output - Implement a Unit of Measure step — For Items with multiple Unit of Measure codes
Version History
Version | Changes |
---|---|
MOB5.38 | Introduced |