Please wait
Talk to Expert
Microsoft Dynamics Business central

How Does Barcode work in BC24?

How Does Barcode work in BC24?

Purpose and Use

  • This functionality is mainly used for Warehouse where warehouse person have to add multiple items at a time for moving one bin to another bin.
  • Item reference field of Item card having barcode functionality. So, items defined against the item reference field directly added on any order or invoice or warehouse pick by scanning barcode of item reference number.
  • Here item reference no which is our barcode value is defined against Item as per shown in below images.

 

  • Now add this item in sales order by scanning barcode of item reference.

  • At the time of adding item, Scanner option is available beside Item reference code field. By clicking on that, scanner will open and after fetching barcode, data will be stored in Item reference field and based on that whole item details will be fetched automatically. Quantity for that item needs to be added only.

 

  • One more control add-in “CameraBarcodeScannerProviderAddIn” is available for camera barcode scanner provider in Business central 2024 wave 1 released.

  • This Control Add-in is used for invoking barcode scanner from AL.
  • For invoking barcode scanning, first create card page and adds this user control as shown in below.
  • Here different triggers of that controller are used for different functions.
  • First if scanner is ready then it reflects supported state as per ControlAddInReady
  • Next if barcode is available, it reflects barcode value as message as per BarcodeAvailable
  • If barcode is not available, then it throws error message like ‘No Barcode’ as per shown in Barcode Failure

Example

page 50100 “Camera Barcode Scanner”

{

ApplicationArea = All;

Caption = ‘Camera Barcode Scanner’;

PageType = Card;

UsageCategory = Administration;

 

layout

{

area(content)

{

usercontrol(BarcodeControl; CameraBarcodeScannerProviderAddIn)

{

ApplicationArea = all;

trigger ControlAddInReady(IsSupported: Boolean)

begin

CameraBarcodeScannerAvailable := IsSupported;

end;

 

trigger BarcodeAvailable(Barcode: Text; Format: Text)

begin

Message(Barcode);

end;

 

trigger BarcodeFailure(Failure: Enum BarcodeFailure)

begin

case Failure of

Failure::Cancel:

Message(‘Canceled’);

Failure::Error:

Message(‘Error’);

Failure::NoBarcode:

Message(‘No Barcode’);

end;

end;

}

}

}

actions

{

area(Processing)

{

action(ScanBarcode)

{

ApplicationArea = All;

Promoted = true;

Caption = ‘Scan Barcode’;

PromotedCategory = Process;

 

trigger OnAction()

begin

CurrPage.BarcodeControl.RequestBarcodeAsync();

end;

}

}

}

var

CameraBarcodeScannerAvailable: Boolean;

}

  • After using controller, also created one action for opening camera as per shown in below images for scanning barcode and called that controller from the action.

Barcode Label Print

  • There are various pages available in BC24 from where we can print barcode label for item which are mentioned below.
  1. Item Card and Item List
    Report prints Item no., Description & GTIN as barcode.
  2. Item References and Item Reference List
    Report prints Item no., Description, Unit of Measure code & Reference No as Barcode.
  3. Lot no. Information Card and Lot no. Information List
    Report prints Item no., Description & Lot No as Barcode.
  4. Serial no. information Card and SN Information List
    Report prints Item no., Description & Serial No as Barcode.

Thank you for investing your time to read our blog! We’re passionate about sharing valuable insights to help you navigate the world of Business Central.

If you’re curious about how we can assist you in reaching your goals, don’t hesitate to get in touch. Our dedicated team is ready to provide support every step of the way.

Let’s turn your vision into reality together!


Comments