To implement 365 business Barcode into your own individual business processes it is necessary to add the 365 business Barcode App as a dependency to your own extension.
This gives you access to the provided interfaces and objects. A detailed documentation can be found in our AL Developer Documentation.
Below is a code example explaining how you can use 365 business Barcode.
Step 1: Add dependency
Open the app.json file in your AL project.
Add the following code to the dependency token:
Code
{ "id": "9aca19d9-d261-4fa0-88fd-121ad0daa0f7", "name": "365 business Barcode", "version": "18.2.0.0", "publisher": "365 business development"}
Run the command AL: Download symbols.
Step 2: Implementation
Two scenarios are shown below:
Step 2.1: QR Code in Report Object
Add a new data item with reference to bdev.Barcode.
Set the property UseTemporary to true.
Set the DataItemTableView property to sorting("Primary Key").
Add a new column for the Barcode field.
Add an OnPreDataItem() trigger with the following code: