Use this event to
...
- Warehouse Receipts
- Purchase Orders
- Transfer Orders
- Sales Return Orders
Excerpt |
---|
Sorting by existing fields
|
...
|
Sorting by custom fields
Change sorting key (not possible from this event)
- Instead use OnGetReceiveOrderLines_OnAfterSetFrom[...] to set custom sorting.
- Instead use OnGetReceiveOrderLines_OnAfterSetFrom[...] to set custom sorting.
Change sorting direction
- Use OnGetReceiveOrderLines_OnAfterSetFrom[...] to set custom sorting.
- Then use
.Ascending()
-function in this event
Template
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Receive", 'OnGetReceiveOrderLines_OnAfterSetCurrentKey', '', true, true)]
procedure OnGetReceiveOrderLines_OnAfterSetCurrentKey(var _BaseOrderLineElementView: Record "MOB Ns BaseDataModel Element")
begin
end;
Example
[EventSubscriber(ObjectType::Codeunit, Codeunit::"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
Version | Changes |
---|---|
MOB5.00 | Introduced |
...