Versions Compared

Key

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

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

Use this event to

Excerpt

Populate values in Order Lines displayed at the mobile device (derived from Warehouse Activity Shipment Line).


Template 1

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Put AwayMOB WMS Ship", 'OnGetPutAwayOrderLinesOnGetShipOrderLines_OnAfterSetFromWarehouseActivityLineOnAfterSetFromWarehouseShipmentLine''', true true, true true)]
    local procedure OnGetPutAwayOrderLines OnGetShipOrderLines_OnAfterSetFromWarehouseActivityLineOnAfterSetFromWarehouseShipmentLine(_WhseActLineTakeWhseShipmentLineRecord "Warehouse Activity LineWarehouse Shipment Line"; var _BaseOrderLineElement: Record "MOB Ns BaseDataModel ElementMOB Ns BaseDataModel Element")
    begin
    end;

...


Template 2

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Put AwayMOB WMS Ship", 'OnGetPutAwayOrderLinesOnGetShipOrderLines_OnAfterSetFromWarehouseActivityLineOnAfterSetFromWarehouseShipmentLine''', true true, true true)]
    local procedure OnGetPutAwayOrderLines OnGetShipOrderLines_OnAfterSetFromWarehouseActivityLine(_WhseActLineTakeOnAfterSetFromWarehouseShipmentLine2(_WhseShipmentLine: Record "Warehouse Shipment Line"; _TempReservationEntryRecord "Warehouse Activity LineReservation Entry"; var _BaseOrderLineElement: Record "MOB Ns BaseDataModel ElementMOB Ns BaseDataModel Element")
var
     Item: Record Item;
begin
     with _BaseOrderLineElement do begin
          Item.Get(    begin
        // (optional parameter _TempReservationEntry can be used when specific knowledge of the associated Reservation Entry is required)
    end;


Example 1

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Ship", 'OnGetShipOrderLines_OnAfterSetFromWarehouseShipmentLine''', true, true)]
    local procedure My01OnGetShipOrderLines_OnAfterSetFromWarehouseShipmentLine(_WhseShipmentLine: Record "Warehouse Shipment Line"; var _BaseOrderLineElement: Record "MOB Ns BaseDataModel Element")
    var
        Item: Record Item;
    begin
        Item.Get(_BaseOrderLineElement.Get_ItemNumber());

          _BaseOrderLineElement.Set_DisplayLine5('Set from OnGetPutAwayOrderLinesSet from OnGetShipOrderLines_OnAfterSetFromWarehouseActivityLineOnAfterSetFromWarehouseShipmentLine');
          SetValue        _BaseOrderLineElement.SetValue('SpecialEquimentCodeSpecialEquipmentCode''SpecialEquimentCodeSpecialEquipmentCode: ' + Item Item."Special Equipment CodeSpecial Equipment Code");
     end;
    end;


Example

...

2

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Put AwayMOB WMS Ship", 'OnGetPutAwayOrderLinesOnGetShipOrderLines_OnAfterSetFromWarehouseActivityLineOnAfterSetFromWarehouseShipmentLine''', true true, true true)]
    local procedure OnGetPutAwayOrderLines My02OnGetShipOrderLines_OnAfterSetFromWarehouseActivityLineOnAfterSetFromWarehouseShipmentLine(_WhseActLineTakeWhseShipmentLineRecord "Warehouse Activity LineWarehouse Shipment Line"; var _BaseOrderLineElement: Record "MOB Ns BaseDataModel ElementMOB Ns BaseDataModel Element")
    var
     Item        ItemRecord Item;
    begin
     with _BaseOrderLineElement do begin
          // New custom tag
          Item        // New custom tag
        Item.Get(_BaseOrderLineElement.Get_ItemNumber());
                  _BaseOrderLineElement.SetValue('SpecialEquimentCodeSpecialEquipmentCode', Item Item."Special Equipment CodeSpecial Equipment Code");

           // Sort by custom tag
           Sort by custom tag
        _BaseOrderLineElement.Set_Sorting1(_BaseOrderLineElement.GetValue('SpecialEquimentCodeSpecialEquipmentCode'));
     end;
    end;



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


Version History

VersionChanges
MOB5.00Introduced

...