Use this event to
...
Sorting by custom fields
Change sorting key
- Not possible Not possible from this event. Use OnGetPhysInvtRecordingOrderLines_OnAfterSetFrom... with Use OnGetPhysInvtRecordingLines_OnAfterSetFromPhysInvtRecordLine with the
Set_Sorting1()-
function instead.
- Not possible Not possible from this event. Use OnGetPhysInvtRecordingOrderLines_OnAfterSetFrom... with Use OnGetPhysInvtRecordingLines_OnAfterSetFromPhysInvtRecordLine with the
Change sorting direction
- This requires two steps for custom fields:
- Use OnGetPhysInvtRecordingOrderLines_OnAfterSetFrom... with OnGetPhysInvtRecordingLines_OnAfterSetFromPhysInvtRecordLine with
Set_Sorting1()
-function as described above. - Then use
.Ascending()
-function in this event.
...
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Phys Invt Recording", 'OnGetPhysInvtRecordingLines_OnAfterSetCurrentKey', '', true, true)]
localprocedure OnGetPhysInvtRecordingLines_OnAfterSetCurrentKey(var _BaseOrderLineElementView: Record "MOB Ns BaseDataModel Element")
begin
end;
Example
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Phys Invt Recording", 'OnGetPhysInvtRecordingLines_OnAfterSetCurrentKey', '', true, true)]
localprocedure MyOnGetPhysInvtRecordingLines_OnAfterSetCurrentKey(var _BaseOrderLineElementView: Record "MOB Ns BaseDataModel Element")
begin
_BaseOrderLineElementView.SetCurrentKey(ItemNumber);
_BaseOrderLineElementView.Ascending(false);
end;
Filter by label (Content by label) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...