Use this event to
...
Change sorting key
- Not possible from this event → Use instead OnGetReceiveOrderLines_OnAfterSetFrom[...] and the
Set_Sorting1()-
function.
- Not possible from this event → Use instead OnGetReceiveOrderLines_OnAfterSetFrom[...] and the
Change sorting direction
- This is done in two steps:
- Use instead OnGetReceiveOrderLines_OnAfterSetFrom[...] 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;
Filter by label (Content by label) | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
...