Use this event to
Modify properties for any single step when registering Production Output Quantity.
See also:
OnGetRegistrationConfigurationOnProdOutput_OnAddStepsToProductionOutput
OnGetRegistrationConfigurationOnProdOutput_OnAddStepsToProductionOutputQuantity
Description
This event is executed once for every step added from OnGetRegistrationConfigurationOnProdOutput_OnAddStepsToProductionOutput or OnGetRegistrationConfigurationOnProdOutput_OnAddStepsToProductionOutputQuantity.
You may use this event to change any property of the step or hide the step.
Template
/// <param name="_RegistrationType">'ProdOutputQuantity' = Called from Adhoc Action; 'ProdOutput' = Called from element list by clicking the element</param>
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Adhoc Registr.", 'OnGetRegistrationConfigurationOnProdOutput_OnAfterAddStepToProductionOutputQuantity', '', true, true)]
local procedure OnGetRegistrationConfigurationOnProdOutput_OnAfterAddStepToProductionOutputQuantity(_RegistrationType: Text; var _LookupResponse: Record "MOB NS WhseInquery Element"; var _Step: Record "MOB Steps Element")
begin
end;
Example - Prevent special characters from being entered in the Lot Number and Serial Number steps (only alfa-numeric values are to be allowed)
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Adhoc Registr.", 'OnGetRegistrationConfigurationOnProdOutput_OnAfterAddStepToProductionOutputQuantity', '', true, true)]
local procedure MyOnGetRegistrationConfigurationOnProdOutput_OnAfterAddStepToProductionOutputQuantity(_RegistrationType: Text; var _LookupResponse: Record "MOB NS WhseInquery Element"; var _Step: Record "MOB Steps Element")
begin
if _Step.Get_name() in ['SerialNumber', 'LotNumber'] then
_Step.Set_inputFormat('^\w+$'); // Regex for allowed values
end;
More examples
There are no items with the selected labels at this time.
Version History
Version | Changes |
---|---|
MOB5.39 | Introduced |