Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Use this event to

TODO

Description

TODO

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;



More examples

  

Version History

VersionChanges
MOB5.22Introduced
  • No labels