In Progress Bar Code / QR Code content type

The development of this suggesion is in progress.

eugenio

Administrator
Staff member
If you set, for a field, the content type to "Barcode" (or "QR Code") DaDaBIK will display the value (in grid, pdf and details page) converting it into a Barcode (or QR Code).
 
Upvote 13

prettem

Member
Hello,
there is no content type barcode or qr code :)

regards
Manuel

1656694409151.png

About/upgrade​

DaDaBIK™ is a product conceived and developed by Eugenio Tacchini
Copyright © 2001-2022 Eugenio Tacchini
Proudly ❤️ made in Emilia
dadabik.com

Your current DaDaBIK version​

You are using DaDaBIK version 11.6-Elba enterprise, installed on 16.06.2022 (installation code: 1780462288396de6b1), the latest version of DaDaBIK is 11.6-Elba released on 14.06.2022

You are running the latest release of DaDaBIK

In case you want to upgrade to a more powerful edition (from Pro to Enterprise/Platinum, from Enteprise to Platinum) please contact us.

System info​

PHP Version: 7.3.27

mysql version: 5.7.33-0ubuntu0.16.04.1

Web server: Apache

Client: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36 OPR/88.0.4412.53
 

abraun

Member
it would be nice if you could add a quick 'Self Reference' option as well so if you print out your records, you can scan the code to pull up the specific record in dadabik.
 

eugenio

Administrator
Staff member
Hi,
the development of this feature is in progress, it will be released with DaDaBIK v13.

I want to share how I am currently implementing it, to see if this meets your typical use cases.

There will be a new field type in form configurator: barcode
  • In insert and edit forms, barcode fields are not displayed
  • In grids, PDF and details page, barcode fields are converted in barcodes, representing, by default, a unique (across the DB) identifier for the record: TABLENAME_ID (e.g. customers_12)
  • You can override the TABLENAME_ID rule by writing a custom function, the function gets in input all the record field values so you can for example represent only the id ("12"), a different field value, a combination of field values, an URL (e.g. the URL to access the record's page in DaDaBIK), ....
I am still not sure about which library to use, these are the current candidates:

1) https://github.com/tecnickcom/tc-lib-barcode
2) https://github.com/milon/barcode
3) https://github.com/picqer/php-barcode-generator
4) https://github.com/mebjas/html5-qrcode/issues

The idea is to have a wrapper on the top of the library so that you can change the library with little efforts.

In addition to the barcode field type, there will probably be the qrcode field type.

Questions for you:
1) Could you share your use case, if it would benefit from the implementation of barcode?
2) Would you use both barcodes and qrcodes?
3) For barcodes, do you need to display the actual data (e.g. "customers_12") below the barcode?

Best,
 

BarcodeUK

New member
If you work in the transport and logistics sector, then GS-1 Code 128 is crucial. SSCC and GTIN codes are used extensively. Search on either and you will see example labels. In manufacturing, Datamatrix is very popular as the code is very dense, for example, printing on circuit boards and ICs. Both GS128 and Datamatrix are used extensively in B2B applications. For B2C, QR codes are commonly used. Most phones can scan QR codes effectively, and these codes typically contain a URL.

I have only one instance where a product has a mixture of all barcode types; the client, a heating manufacturer, uses Datamatrix during production. GS1 is used for the shipping labels. On the finished product label, they have a QR code linked to the product manual, and the Datamatrix containing product code, serial number and manufacture date. The latter is for use by their service engineers. On a separate label, they have a QR code for customer registration.

In the case of GS1 codes, the human-readable is always present below the code. For the 2D symbologies (Datamatrix and QR), this is much less common. I have several customers using Code 128, and while the human-readable information is often present, it will not be linked to the barcode.

For all of my customers, they don't use any web front-end we have produced to print the barcodes. We always generate barcode labels using third-party software, Seagull Software's BarTender (https://www.seagullsoftware.com/). This approach makes any application we produce independent of the label design and printing method. Using BarTender, we are 100% confident that the barcodes will be correct and comply with industry standards.

The only application I can think of where we have generated the barcode within our applications is for ticketing. This was to enable the client to send unique invitations to their customers and scan the code from the email at the venue. Consider Amazon; they extensively utilise barcodes within their supply chain; however, you will struggle to find barcodes on their website. The most common are a QR code to download their application, and a Datamatrix code generated for a labelless return.
 

TechSupport

New member
Hello Eugenio,

We currently use barcodes in our DaDaBIK warehouse stock control/stock shipping application to print PDF labels stock/shipping. This feature was implemented (back in 2019) with the help of DaDaBIK forum contributors as a 'work-around' to overcome the lack of a barcode facility within DaDaBIK - see forum post: https://dadabik.com/forum/index.php?threads/pdf-barcode-dadabik-field-for-tcpdf-php-function.21289/ .

We have also written a standalone Python app which does a lookup of the DaDaBIK stock control database to display certain fields 'live' on screen as barcodes so we can scan the screen barcodes from the app to save repetitive typing of data into DaDaBIK.

Our requirement/implementation is limited to the 1D Code128 barcode as; (a) by default Code128 displays human-readable text of the data in the barcode graphic (useful if you do not have a barcode scanner to hand), (b) Code128 can be scanned from a distance with good accuracy (important when stock can be 3m from ground level), and (c) even the most basic and cheapest scanner will scan Code128.

So to answer your question, yes, barcode capability built in to DaDaBIK would be useful for us, and likely all users running stock control/warehousing applications, and the ability to display barcodes on screen (even if only in record detail view) would be handy for any DaDaBIK user who has a barcode scanner and has to do repetitive data entry. And, the option to have a human-readable text/character representation of the barcode graphic would be handy as it would remove the restriction of having to use barcodes which have this feature embedded (eg. Code128 or Code39) opening up the barcode feature to users who have to use a specific barcode that does not display text/characters natively.

Regards, Gary
 
Top