Versions Compared

Key

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

Use this event to

...

    [EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Toolbox", 'OnBeforeGetLocationFilter', '', true, true)]
    local procedure OnBeforeGetLocationFilter(var _LocationFilter: Text; var _IsHandled: Boolean)
    begin
    end;

Example

    [EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Toolbox", 'OnBeforeGetLocationFilter', '', true, true)]
    local procedure Ex01OnBeforeGetLocationFilter(var _LocationFilter: Text; var _IsHandled: Boolean)
    var
        MobSessionData: Codeunit"MOB SessionData";
    begin
        if (MobSessionData.GetDocumentType() = 'Lookup') and (MobSessionData.GetRegistrationType() = 'LocateItem') thenbegin
            _LocationFilter := '*';
            _IsHandled := true;
            exit;
        end;
        if MobSessionData.GetMobileUserID() = 'JOHN'thenbegin
            _LocationFilter := 'GREEN|BLUE';
            _IsHandled := true;
            exit;
        end;
    end;


Filter by label (Content by label)
showLabelsfalse
showSpacefalse
titleSee also
excerptTypesimple
excludeCurrenttrue
cqllabel = "bc" and label = "onbeforegetlocationfilter"

...