Versions Compared

Key

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

Use this event to

Excerpt

Add steps to be displayed at the mobile device when collecting values for output Scrap.

...

  • Double-tap the Output line to collect "all steps" (including Scrap-steps, but also steps related to Quantity and Time).Register for Quantity, Time AND Scrap
  • Collect only "Scrap"-steps by using the promoted "Output Scrap" action at the page.

...

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_OnAfterAddStepToProductionOutputScrap

Template

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

Example

    // [Example]  Include message for no scrap code to maintain same number of steps for easier fast forward on mobile device
    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Adhoc Registr.", 'OnGetRegistrationConfigurationOnProdOutput_OnAddStepsToProductionOutputScrap''', true, true)]
    local procedure MyOnGetRegistrationConfigurationOnProdOutput_OnAddStepsToProductionOutputScrap(var _LookupResponse: Record "MOB NS WhseInquery Element"; var _Steps: Record "MOB Steps Element")
    var
        RegisterScrapCode: Boolean;
    begin
        Evaluate(RegisterScrapCode, _LookupResponse.GetValue('RegisterScrapCode', false));
        if not RegisterScrapCode then
            _Steps.Create_InformationStep(
                205,                                                            // Id
                'MyInformationStep',                                                                             // name
                'Information',                                                                                               // header
                '',                                                                                                                             // label
                'Scrap Code cannot be registered for this output line.');       // helpLabel        
    end;



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

...