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"
How header steps are sorted
Template
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Ship", 'OnGetShipOrderLines_OnAddStepsToWarehouseShipmentHeader', '', true, true)]
procedure OnGetShipOrderLines_OnAddStepsToWarehouseShipmentHeader(_WhseShipmentHeader: Record "Warehouse Shipment Header"; var _StepsElement: Record "MOB Steps Element")
begin
end;
Example
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Ship", 'OnGetShipOrderLines_OnAddStepsToWarehouseShipmentHeader', '', true, true)]
procedure OnGetShipOrderLines_OnAddStepsToWarehouseShipmentHeader(_WhseShipmentHeader: Record "Warehouse Shipment Header"; var _StepsElement: Record "MOB Steps Element")
begin
with _StepsElement do begin
Create_InformationStep(
10, // id
'MyInformationStep', // name
'New Information', // header
'', // label
'Always do an ImageCapture upon shipment if no image is currently displayed at mobile device.'); // helpLabel
Create_SignatureStep(
20, // id
'MySignatureStep', // name
'Signature', // header
'Sign:', // label
'Tap the signature icon to provide signature'); // helpLabel
end;
end;
Examples
-
Case: Scan ExpirationDate in custom format — Scan ExpirationDate as custom format YYYYMM when goods is received from any Vendor.
-
How-to: Add Line Step — Add Steps to be displayed during a line registration on planned functions
Version History
Version | Changes |
---|---|
MOB5.10 | Introduced as OnGetShipOrderLines_OnAfterAddStepsOnPosting |
MOB5.11 | Renamed to OnGetShipOrderLines_OnAddStepsToAnyHeader |