Use this event to
Excerpt |
---|
Add Steps to be displayed at the mobile device before posting (the Order). |
...
- 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 alsp
Template
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Receive", 'OnGetReceiveOrderLines_OnAddStepsToAnyHeader', '', true, true)]
local procedure OnGetReceiveOrderLines_OnAddStepsToAnyHeader(_RecRef: RecordRef; var _StepsElement: Record "MOB Steps Element")
begin
// Add your custom header steps here...
// _StepsElement.Create...
;
end;
Example
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Receive", 'OnGetReceiveOrderLines_OnAddStepsToAnyHeader', '', true, true)]
procedure MyOnGetReceiveOrderLines_OnAddStepsToAnyHeader(_RecRef: RecordRef; var _StepsElement: Record "MOB Steps Element")
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)
_StepsElement.Create_InformationStep(5, 'MyInformationStep');
_StepsElement.Set_header('New Information');
_StepsElement.Set_helpLabel('Always do an ImageCapture upon receive if goods are damaged.');
end;
//
// New SignatureStep
//
_StepsElement.Create_SignatureStep(10000, 'MySignatureStep'); // id greater than 10 (after standard Delivery Note step)
_StepsElement.Set_header('Signature');
_StepsElement.Set_label('Sign:');
// Set_helpLabel('Tap the signature icon to provide signature');
_StepsElement.SetValue('helpLabel', 'Tap the signature icon to provide signature'); // example: direct assignment to attribute
end;
Filter by label (Content by label) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...