Versions Compared

Key

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

Description

Filter and reduce Order Lines by a scanned value.This article builds on the concept of Select Order Line by custom barcode

But extends is to be used

Used for custom barcodes (Non GS1), in special cases where a regular expression is needed to decipher the barcode.


1st step: Set up mobile config

Follow the setup on Select Order Line by custom barcode and define your regular expression for the Barcode converter.


2nd step: Register "GetLineSelectionInformation"

You must register this mobile document type.

Use event OnAfterCreateDefaultDocumentTypes


    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Setup Doc. Types", 'OnAfterCreateDefaultDocumentTypes''', true, true)]
    local procedure OnAfterCreateDefaultDocumentTypes()
    var
        MobWmsSetupDocTypes: Codeunit "MOB WMS Setup Doc. Types";
    begin
        MobWmsSetupDocTypes.CreateDocumentTypeAndAddToMobileGroup('GetLineSelectionInformation'Codeunit::"MOB WMS Whse. Inquiry", 'WMS');
    end;


Remember to run Create Document Types from Mobile WMS Setup. Otherwise you will get this error.

Image Added Image Added


3rd step: