OnGetRegistrationConfigurationOnProdOutput_OnAddStepsToProductionOutput

Use this event to

Add steps to be displayed at the mobile device when collecting values for any of the types Quantity, Time and Scrap

Description

Production output may be collected at mobile device by either...

  • Double-tap the Output line to collect "all steps" for Quantity, Time AND Scrap
  • Register Quanity, Time OR Scrap specifically by using the promoted action at the page.

This event will add steps to all options mentioned above. To add steps to a specific action only, see:


Steps are generally sorted by Id. If your new step should be the last step displayed at all, choose a high Id for your step, i.e. 10000


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_OnAddStepsToProductionOutput''', true, true)]
    local procedure OnGetRegistrationConfigurationOnProdOutput_OnAddStepsToProductionOutput(var _LookupResponse: Record "MOB NS WhseInquery Element"; var _Steps: Record "MOB Steps Element")
    begin
    end;

Example

    // [Example]  Add Posting Date step to be displayed for all actions (Quantity, Time and Scrap)
    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Adhoc Registr.", 'OnGetRegistrationConfigurationOnProdOutput_OnAddStepsToProductionOutput''', true, true)]
    local procedure MyOnGetRegistrationConfigurationOnProdOutput_OnAddStepsToProductionOutput(var _LookupResponse: Record "MOB NS WhseInquery Element"; var _Steps: Record "MOB Steps Element")
    begin
        _Steps.Create_DateStep(10000'MyPostingDateStep');
        _Steps.Set_header('Posting Date');
        _Steps.Set_defaultValue(Today());
        _Steps.Set_minDate(Today() 1);
        _Steps.Set_maxDate(Today());
    end;



More examples

  

Version History

VersionChanges
MOB5.27Introduced