Barcode

Creates or reads the information of a barcode.

Usage example

  • Archives administration:

    Facilitate the separation and indexing of documents that have been imaged in batch scanning applications.

  • Healthcare industry:

    Patient identification (to access patient data, including medical history, drug allergies, etc.)

  • Pharmaceutical industry:

    Identify, secure and track products to deal with competitors who want to market counterfeit or fake goods.

  • Retail industry:

    Help track items and also reduce instances of shoplifting involving price tag swapping.

  • Tag reader:

    Use barcodes to connect customers from your offline marketing materials to information, entertainment, and interactive experiences on their smartphones.

eon_mobile_barcodeex object

Functions
of_create

Description

Generates an image containing the barcode according to the data and format specified by the user, and returns the image path.

Supported on mobile client only.

Syntax

barcode.of_create ( value string as_data, value integer ai_format, ref string as_filepath )

barcode.of_create ( value string as_data, value integer ai_format, ref string as_filepath, ref blob ablb_data )

Argument Type

Argument

Description

eon_mobile_barcodeex

barcode

The name of the eon_mobile_barcodeex object.

string

as_data

Sets the data of a barcode.

integer

ai_format

Sets the format of barcode.

string

as_filepath

Returns the path of the generated barcode image in the application sandbox's "plugin" directory.

blob ablb_data Returns the data of the generated barcode image.

Following is the list of supported barcode formats:

Data

Format

Specification

0

Unknown

 

3

EAN-8

It is the short version of EAN-13. An EAN-8 number contains 7 digits of message plus 1 check digit. The first two or three digits identify the numbering authority, and the remaining 4 or 5 digits identify the product.

4

UPC-E4

It is the short form representation of a UPC-A number. It reduces the data length from 12 digits to 6 digits by compressing the extra zeros. It is suited for identifying products in small packages.

6

UPC-A

It is the most common and well-known symbology in the US, which consists of four areas: 1) The number system; 2) The manufacturer code; 3) The product code; 4) The check digit.

7

EAN-13

It is a superset of UPC-A. Any software or hardware capable of reading an EAN-13 symbol will automatically be able to read an UPC-A symbol.

11

CODE 128

A high-density linear symbology that encodes text, numbers, numerous functions and the entire 128 ASCII character set. It enables you to store diversified information in the barcode.

12

CODE 93

An alphanumeric, variable length symbology designed to provide a higher density and data security enhancement to Code 39.

13

CODE 39

The first alpha-numeric symbology that originally encoded 39 characters (now 43) . It is not as compact as the Code 128 symbology, but it is still heavily used in the automotive industry and by the US Department of Defense.

14

ITF

A mix between the POS (Point-of-sale) codes and the logistics barcode Code 128. It's mainly being used in trading, but only on products that need no POS interaction.

20

QR CODE

A "2D Matrix" symbology. Because QR Code requires camera based scanners it is currently restricted for use with applications that will involve imaging scanners within mobile devices and not for POS processing.

21

DataMatrix

A 2D barcode symbology with very high data density. It is spreading in the area of mobile marketing, in such applications the DataMatrix barcode is also known under the name SemaCode.

22

AZTEC

Supported on iOS only.

It is a matrix symbology which supports the entire ASCII character set and offers several error checking modes. Aztec symbols are square and may be read at any orientation.

Return value

Integer.

1 - Success.

-1 - It is called in PowerBuilder or PowerServer Web, or there is an error.

of_getfiledata

Description

Reads data from the specified image file.

Syntax

barcode.of_getfiledata ( string as_filepath )

Argument Type

Argument

Description

eon_mobile_barcodeex

barcode

The name of the eon_mobile_barcodeex object.

string

as_filepath

The full path of the file you want to read.

Return value

Blob.

of_read

Description

Executes this function when you need to scan an image containing the barcode information.

The camera will be opened automatically by PowerServer, and you need to point the camera at the image to be scanned. The camera will automatically close after a successful scanning, and will return the data and format contained in the barcode.

Supported on mobile client only.

Syntax

barcode.of_read ( ref string as_data, ref integer ai_format )

Argument Type

Argument

Description

eon_mobile_barcodeex

barcode

The name of the eon_mobile_barcodeex object.

string

as_data

Returns the data of a barcode.

integer

ai_format

Returns the format of barcode.

Following is the list of supported barcode formats:

Data

Format

Specification

0

Unknown

 

3

EAN-8

It is the short version of EAN-13. An EAN-8 number contains 7 digits of message plus 1 check digit. The first two or three digits identify the numbering authority, and the remaining 4 or 5 digits identify the product.

4

UPC-E4

It is the short form representation of a UPC-A number. It reduces the data length from 12 digits to 6 digits by compressing the extra zeros. It is suited for identifying products in small packages.

6

UPC-A

It is the most common and well-known symbology in the US, which consists of four areas: 1) The number system; 2) The manufacturer code; 3) The product code; 4) The check digit.

7

EAN-13

It is a superset of UPC-A. Any software or hardware capable of reading an EAN-13 symbol will automatically be able to read an UPC-A symbol.

11

CODE 128

A high-density linear symbology that encodes text, numbers, numerous functions and the entire 128 ASCII character set. It enables you to store diversified information in the barcode.

12

CODE 93

An alphanumeric, variable length symbology designed to provide a higher density and data security enhancement to Code 39.

13

CODE 39

The first alpha-numeric symbology that originally encoded 39 characters (now 43) . It is not as compact as the Code 128 symbology, but it is still heavily used in the automotive industry and by the US Department of Defense.

14

ITF

A mix between the POS (Point-of-sale) codes and the logistics barcode Code 128. It's mainly being used in trading, but only on products that need no POS interaction.

20

QR CODE

A "2D Matrix" symbology. Because QR Code requires camera based scanners it is currently restricted for use with applications that will involve imaging scanners within mobile devices and not for POS processing.

21

DataMatrix

A 2D barcode symbology with very high data density. It is spreading in the area of mobile marketing, in such applications the DataMatrix barcode is also known under the name SemaCode.

22

AZTEC

Supported on iOS only.

It is a matrix symbology which supports the entire ASCII character set and offers several error checking modes. Aztec symbols are square and may be read at any orientation.

Return value

Integer.

1 - Success.

0 - Cancel.

-1 - It is called in PowerBuilder or PowerServer Web, or there is an error.