Use this event to
Excerpt |
---|
Handle collected values from a single Registration for a Warehouse Shipment Line. |
Description
This event is used to handle collected "line" level steps and is executed once for each individual Mobile WMS Registration.
...
// [Template]
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Adhoc Registr.", 'OnPostAdhocRegistrationOnToteShipping_OnBeforeModifyRegistration', '', true, true)]
local procedure OnPostAdhocRegistrationOnToteShipping_OnBeforeModifyRegistratio(_WhseShptLine: Record "Warehouse Shipment Line"; var _RequestValues: Record "MOB NS Request Element"; var _Registration: Record "MOB WMS Registration")
begin
end;
Example
// [Example]
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Adhoc Registr.", 'OnPostAdhocRegistrationOnToteShipping_OnBeforeModifyRegistration', '', true, true)]
local procedure MyOnPostAdhocRegistrationOnToteShipping_OnBeforeModifyRegistration(_WhseShptLine: Record "Warehouse Shipment Line"; var _RequestValues: Record "MOB NS Request Element"; var _Registration: Record "MOB WMS Registration")
var
RegisteredToteID: Text;
begin
RegisteredToteID := _Registration."Tote ID";
if not RegisteredToteID.Contains(_RequestValues.GetValue('ToteID')) then
_Registration.FieldError("Tote ID");
// Assign any field at MobWmsRegistration here...
// ...
end;
Filter by label (Content by label) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...