Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

Use this event to

Excerpt

Filter Sales Return Lines to be displayed in OrderLines-list at as Order Lines on the mobile device.


Description

With this event you can perform basic record filtering of Order Lines.

If you have complex conditions, consider consider OnGetPickOrderLines_OnInclude... instead instead

Learn about Basic vs. Complex filtering

Template

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS ReceiveMOB WMS Pick", 'OnGetReceiveOrderLinesOnGetPickOrderLines_OnSetFilterSalesReturnLineOnSetFilterSalesLine''', true, true)]
    local procedure OnGetReceiveOrderLines OnGetPickOrderLines_OnSetFilterSalesReturnLineOnSetFilterSalesLine(var _SalesReturnLineSalesLineRecord "Sales Line")
    begin
    end;


Example

    // [Example]: Do not show "Drop Shipment" Lines
    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS ReceiveMOB WMS Pick", 'OnGetReceiveOrderLinesOnGetPickOrderLines_OnSetFilterSalesReturnLineOnSetFilterSalesLine''', true, true)]
    local procedure MyOnGetReceiveOrderLines MyOnGetPickOrderLines_OnSetFilterSalesReturnLineOnSetFilterSalesLine(var _SalesReturnLineSalesLineRecord "Sales Line")
    begin
        // [Scenario] Apply addition filter to excluding order lines (and orders) with posting different than today
        _SalesReturnLine.SetFilter(_SalesReturnLine."Posting Date", '=%1', WorkDate()_SalesLine.SetRange("Drop Shipment", false);
    end;



Filter by label (Content by label)
showLabelsfalse
showSpacefalse
sorttitle
titleMore examples
excerptTypesimple
cqllabel = "bc" and label = "orderlines" and label = "example" and label = "onsetfilter"


Version History

VersionChanges
MOB5.10Introduced as OnGetReceiveOrderLines_OnSetFilterSalesReturnOrderLine
MOB5.11Renamed to OnGetReceiveOrderLines_OnSetFilterSalesReturnLine