Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Use this event to

Change sort order for <LookupResponse>-elements at the mobile device.


See also: Filter or Sort Orders

Template

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Lookup", 'OnLookupOnAnyLookupType_OnAfterSetCurrentKey''', true, true)]
    local procedure OnLookupOnAnyLookupType_OnAfterSetCurrentKey(_LookupType: Textvar _LookupResponseElementView: Record "MOB NS WhseInquery Element")
    begin
    end;

Example

    // [Example]  Sort response by Item.Name (="DisplayLine2" in response)
    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Lookup", 'OnLookupOnAnyLookupType_OnAfterSetCurrentKey''', true, true)]
    local procedure MyOnLookupOnAnyLookupType_OnAfterSetCurrentKey(_LookupType: Textvar _LookupResponseElementView: Record "MOB NS WhseInquery Element")
    var
        MobWmsLookup: Codeunit "MOB WMS Lookup";
    begin
        if _LookupType = MobWmsLookup."CONST::BinContent"() then
            _LookupResponseElementView.SetCurrentKey(DisplayLine2);
    end;

Version History

VersionChanges
MOB5.22Introduced
  • No labels