Versions Compared

Key

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

Use this event to

Excerpt

Validate or update Mobile WMS Registration values during ToteShipping.

...

Code to be executed prior to posting via standard posting routines.


Description

The event can be used to call functions on the standard posting codeunit before run to i.e. print document on posting.


Template

    // [Template]
    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Adhoc Registr.", 'OnPostAdhocRegistrationOnToteShipping_OnBeforeModifyRegistrationOnBeforeRunWhsePostShipment''', true, true)]
    local procedure OnPostAdhocRegistrationOnToteShipping_OnBeforeModifyRegistratioOnBeforeRunWhsePostShipment(var _WhseShptLine: Record "Warehouse Shipment Line"; var _RequestValuesWhsePostShipmentRecordCodeunit "MOB NS Request Element"; var _Registration: Record "MOB WMS Registration"Whse.-Post Shipment")
    begin
    end;
 

Example

    // [Example] 
    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Adhoc Registr.", 'OnPostAdhocRegistrationOnToteShipping_OnBeforeModifyRegistrationOnBeforeRunWhsePostShipment''', true, true)]
    local procedure MyOnPostAdhocRegistrationOnToteShipping_OnBeforeModifyRegistrationOnBeforeRunWhsePostShipment(var _WhseShptLine: Record "Warehouse Shipment Line"; var _RequestValuesWhsePostShipmentRecordCodeunit "MOB NS Request Element"; var _Registration: Record "MOB WMS Registration"Whse.-Post Shipment")
    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...
        // ...
_WhsePostShipment.SetPrint(true);
    end;

 

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


Version History

Version

Changes

MOB5.17Introduced

...