Versions Compared

Key

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

Use this event to

...

  • Warehouse Receipts
  • Purchase Orders
  • Transfer Orders
  • Sales Return Orders

 

Excerpt

Sorting by existing fields

  • Change sorting key

...

    • Use .SetCurrentKey(field)-function with any of the existing fields from the Line table (Record parameter on this event).

  • Change sorting direction
    • Use .Ascending(true/false)-function to order by ascending/descending value. 


Sorting by custom fields

Template

[EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Receive", 'OnGetReceiveOrderLines_OnAfterSetCurrentKey''', true, true)]
procedure OnGetReceiveOrderLines_OnAfterSetCurrentKey(var _BaseOrderLineElementView: Record "MOB Ns BaseDataModel Element")
begin
end;
 

Example

[EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Receive", 'OnGetReceiveOrderLines_OnAfterSetCurrentKey''', true, true)]
procedure OnGetReceiveOrderLines_OnAfterSetCurrentKey(var _BaseOrderLineElementView: Record "MOB Ns BaseDataModel Element")
begin
     _BaseOrderLineElementView.SetCurrentKey(ItemNumber);
     _BaseOrderLineElementView.Ascending(false);
end;
 

Version History

VersionChanges
MOB5.00Introduced

...