Use this event to
Excerpt |
---|
Change sort order for the receive order lines list at the mobile device. |
...
- Warehouse Receipts
- Purchase Orders
- Transfer Orders
- Sales Return Orders
...
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).
- Use
Change sorting direction
- Use
.Ascending(true/false)
-function.
- Use
Sorting by custom fields
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) | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
...