Use this event to
...
Excerpt |
---|
Sorting by existing fields
|
Sorting by custom fields
Change sorting
key (not possiblekey
- Not possible from this event
- Instead use → Use instead OnGetReceiveOrderLines_OnAfterSetFrom[...] to set custom sorting and the
Set_Sorting1()-
function.
Change sorting direction
Use- This is done in two steps:
- Use instead OnGetReceiveOrderLines_OnAfterSetFrom[...] to set custom sorting and the Set_Sorting1()-function.
- 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 |
...