Use this event to
Excerpt |
---|
Change sort order for the receive order lines list at the mobile device. |
...
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
// Parameter: " _BaseOrderLineElementView" --> Temporary record representing the Order Lines
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) | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
...