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 Quantity.

...

    /// <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)]
    localprocedure 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)]
    localprocedure 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;


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


Version History

VersionChanges
MOB5.39Introduced

...