Przejdź do głównej zawartości

GetBarcodes

This function scans barcodes from attachments and returns them in XML format. RegExp function can later be used to extract actual data.

GetBarcodes();
GetBarcodes("fileName|fieldName");
  • fileName|fielName – (String) [Optional] Name of the file or field from which barcodes are to be scanned. If not provided, all attachments (files) will be scanned.

This function returns String. Returns barcode content in XML format. Consecutive barcodes values are stored in consecutive numeric xml nodes i.e: barcode1barcode2 etc.

Example 1: Get barcodes from all attachments and store their values in XML format in ’barcodesXml’ variable.

barcodesXml = GetBarcodes();

Example 2: GetBarcodes from attachment named ’examplaryFile’ and store their values in XML format in ’barcodesXml’ variable.

barcodesXml = GetBarcodes("examplaryFile");