web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :

Barcode generator component (JAN/EAN/CODE-39)

h-nagao Profile Picture Posted by h-nagao 392

This is component library including Barcode generator.

At this time, it supports EAN/JAN and CODE-39 format

* Will update here when other format is available

 

hnagao_0-1628226319317.png

 

Input properties

InputCode (Text type) : Barcode data

AutoCheckDigit (Boolean) : If true, add/replace auto-calculated digit. 

Categories:

Comments

  • h-nagao Profile Picture h-nagao 392
    Posted at
    Barcode generator component (JAN/EAN/CODE-39)

    Thanks @Morikawa for your interest and helpful feedback!

  • Morikawa Profile Picture Morikawa
    Posted at
    Barcode generator component (JAN/EAN/CODE-39)

    I found a bug at the check digit calculation.

     

    ----------

    (10-Right(Text(Sum(Sequence(6,2,2),Int(Mid(JAN_EAN.InputCode,ThisRecord.Value,1)))*3+Sum(Sequence(6,1,2),Int(Mid(JAN_EAN.InputCode,ThisRecord.Value,1)))),1))

    ----------

     

    When this result is "10", the correct check digit is "0".

    But the logic returns "10".

     

    I fixed as the following.

     

    ----------

    Mod((10-Right(Text(Sum(Sequence(6,2,2),Int(Mid(JAN_EAN.InputCode,ThisRecord.Value,1)))*3+Sum(Sequence(6,1,2),Int(Mid(JAN_EAN.InputCode,ThisRecord.Value,1)))),1)),10)

    ----------