OnGetPickOrderLines_OnAddStepsToAnyHeader

Use this event to

Add Steps to be displayed at the mobile device before posting (the Order).

Description

Header steps are executed..

  • after all lines have been registered at the mobile device, and "Post the order?" page was accepted.
  • when the mobile user manually select "Post" 


See also: OnGetPickOrderLines_OnAfterAddStepToAnyHeader

See also

Whitepaper Understanding Steps


Template

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Pick", 'OnGetPickOrderLines_OnAddStepsToAnyHeader''', true, true)]
    local procedure OnGetPickOrderLines_OnAddStepsToAnyHeader(_RecRef: RecordRefvar _StepsElement: Record "MOB Steps Element")
    begin
    end;

Using steps in code

Example

    // [Example]: Add a new text collector step on header    
    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Pick", 'OnGetPickOrderLines_OnAddStepsToAnyHeader''', true, true)]
    local procedure MyOnGetPickOrderLines_OnAddStepsToAnyHeader(_RecRef: RecordRefvar _StepsElement: Record "MOB Steps Element")
    begin
        _StepsElement.Create_InformationStep(
            10000,                                                                                           // Id
            'MyInformationStep',                                                                    // name
            'New Information',                                                                        // header
            '',                                                                                                   // label
            'Always do an ImageCapture upon pick if no image is currently displayed at mobile device.');     // helpLabel
    end;



More examples


Version History

VersionChanges
MOB5.10Introduced as OnGetReceiveOrderLines_OnAfterAddStepsOnPosting
MOB5.11Renamed to OnGetReceiveOrderLines_OnAddStepsToAnyHeader