Versions Compared

Key

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

Use this event to

...

Due to the Production Output being implemented as Lookup-page each single Registration is posted right away (when Steps for the line is collected). For this reason no events exists to add "header" level steps.

See also: OnGetRegistrationConfigurationOnProdOutput_OnAfterAddStepToProductionOutputQuantity

Template

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Adhoc Registr.", 'OnGetRegistrationConfigurationOnProdOutput_OnAddStepsToProductionOutputQuantityOnAddStepsToProductionOutput''', true, true)]
    local procedure OnGetRegistrationConfigurationOnProdOutput_OnAddStepsToProductionOutputQuantityOnAddStepsToProductionOutput(var _LookupResponse: Record "MOB NS WhseInquery Element"; var _Steps: Record "MOB Steps Element")
    begin
    end;

Example

    // [Example]  Add custom "Total NetWeight" step if item is setup for NetWeight  Add Posting Date step to be displayed for all actions (Quantity, Time and Scrap)
    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Adhoc Registr.", 'OnGetRegistrationConfigurationOnProdOutput_OnAddStepsToProductionOutputQuantityOnAddStepsToProductionOutput''', true, true)]
    local procedure MyOnGetRegistrationConfigurationOnProdOutput_OnAddStepsToProductionOutputQuantityOnAddStepsToProductionOutput(var _LookupResponse: Record "MOB NS WhseInquery Element"; var _Steps: Record "MOB Steps Element")
    var
        Item: Record Item;
    begin
        if (Item.Get(_LookupResponse.Get_ItemNumber())) and (Item."Net Weight" <> 0then begin
            // create new step id 90 = following existing quantity steps, but prior to time steps
            _Steps.Create_DecimalStepDateStep(9010000'CustomTotalNetWeightGramsMyPostingDateStep');
                    _Steps.Set_header('Total Net Weight (Grams)Posting Date');
                    _Steps.Set_labeldefaultValue('Total Net Weight Today(Grams):');
                    _Steps.Set_helpLabel('Total Net Weight in Grams'minDate(Today() 1);
                    _Steps.Set_minValue(0);
            _Steps.Set_maxValue(100000);
            _Steps.Set_performCalculation(true);
        endmaxDate(Today());
    end;



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

  

Version History

VersionChanges
MOB5.27Introduced