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 before posting a Receive (the Order).


Description

Steps Header steps are executed...

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

New steps and existing standard steps is ordered by "id" (Android only) *)

A standard step "Delivery Note" may exist at warehouse receipts and purchase orders (unless Mobile WMS Setup."Skip collection of delivery note on receive" is set).

...

Template

  •  


See also: OnGetPickOrderLines_OnAfterAddStepToAnyHeader

See also

Whitepaper Understanding Steps


Template

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS ReceiveMOB WMS Pick", 'OnGetReceiveOrderLinesOnGetPickOrderLines_OnAddStepsToAnyHeader''', true, true)]
    local procedure OnGetReceiveOrderLines OnGetPickOrderLines_OnAddStepsToAnyHeader(_RecRef: RecordRefvar _StepsElement: Record "MOB Steps Element")
begin
    with _StepsElement do begin
          // My custom steps on posting here ....
    end;
end;

Example

    begin
    end;

Using steps in code

Example

    // [Example]: Add a new text collector step on header    
    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS ReceiveMOB WMS Pick", 'OnGetReceiveOrderLinesOnGetPickOrderLines_OnAddStepsToAnyHeader''', true, true)]
    local procedure OnGetReceiveOrderLines MyOnGetPickOrderLines_OnAddStepsToAnyHeader(_RecRef: RecordRefvar _StepsElement: Record "MOB Steps Element")
    begin
    with _StepsElement do begin
        // 
        // A standard DeliveryNote step (id=10) may exists. Steps is ordered by id at the Mobile WMS Android App
        // New steps id's can be lower or greater than 10, dependent on where in the workflow you want new steps to show
        // 
        // Values may also be set directly using SetValue if not Set method exists.
        // This may be needed if new attributes is introduced to the Mobile WMS Android App but you did not yet update your BC app.
        //         //
        // New InformationStep
        //
        if (_RecRef.Number() in [DataBase::"Warehouse Receipt Header", Database::"Purchase Header"]then begin
            // id is lower than 5 (prior to Delivery Note step)
            Create_InformationStep(5'MyInformationStep');
            Set_header('New Information');
            Set_helpLabel('Always do an ImageCapture upon receive if goods are damaged.');
        end;
        //
        // New SignatureStep
        //
        Create_SignatureStep(10000'MySignatureStep');     // id greater than 10 (after standard Delivery Note step)
        Set_header('Signature');
        Set_label('Sign:');
        // Set_helpLabel('Tap the signature icon to provide signature');
        SetValue('helpLabel''Tap the signature icon to provide signature');   // example: direct assignment to attribute
    end;
end
;
        _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;



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


Version History

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

...