Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Use this event to

Excerpt

Handle collected values from a single Registration for a Warehouse Shipment Line.

...

    // [Template]
    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Adhoc Registr.", 'OnPostAdhocRegistrationOnToteShipping_OnBeforeModifyRegistrationOnHandleRegistrationForWarehouseShipmentLine''', true, true)]
    local procedure OnPostAdhocRegistrationOnToteShipping_OnBeforeModifyRegistratioOnHandleRegistrationForWarehouseShipmentLine(var _WhseShptLineRegistrationRecord "Warehouse Shipment LineMOB WMS Registration"; var _RequestValues: Record "MOB NS Request Element"; var _RegistrationWhseShptLineRecord "MOB WMS RegistrationWarehouse Shipment Line")
    begin
    end;
 

Example

    // [Example] 
    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Adhoc Registr.", 'OnPostAdhocRegistrationOnToteShipping_OnBeforeModifyRegistrationOnHandleRegistrationForWarehouseShipmentLine''', true, true)]
    local procedure MyOnPostAdhocRegistrationOnToteShipping_OnBeforeModifyRegistrationOnHandleRegistrationForWarehouseShipmentLine(var _WhseShptLineRegistrationRecord "Warehouse Shipment LineMOB WMS Registration"; var _RequestValues: Record "MOB NS Request Element"; var _RegistrationWhseShptLineRecord "MOB WMS RegistrationWarehouse Shipment Line")
    var
        RegisteredToteID        WhseShptHeader: Record "Warehouse Shipment Header";
        RegistrationTypeText;
    begin
        RegisteredToteID        RegistrationType := _RegistrationRequestValues.GetValue('RegistrationType');

        WhseShptHeader.Get(_WhseShptLine."Tote IDNo.");
        if not RegisteredToteID.Contains(_RequestValues.GetValue('ToteID')) then
            _Registration.FieldError("Tote ID");
        // Assign any field at MobWmsRegistration here...
        // ..._WhseShptLine."Description 2" := CopyStr(StrSubstNo('%1 %2 %3', RegistrationType, _Registration."Tote ID", WhseShptHeader."MOB Posting MessageId")1, MaxStrLen(_WhseShptLine."Description 2"));
    end;

 

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


Version History

Version

Changes

MOB5.17Introduced

...