Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Use this event to

Validate or update Mobile WMS Registration values during ToteShipping.

Update a "Mobile WMS Registration" after-the-fact with values that was not handled during the OnSaveRegistrationValue-event i.e. a TrackingNumber that was collected per Shipment Document rather than per line.

You may also use this event to carry out additional validation of the Mobile WMS Registration vs. Warehouse Shipment Line.


Template

    // [Template]
    [EventSubscriber(ObjectType::CodeunitCodeunit::"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::CodeunitCodeunit::"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;

 

More examples

There are no items with the selected labels at this time.


Version History

Version

Changes

MOB5.17Introduced
  • No labels