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");Function arguments
Dział zatytułowany „Function arguments”- 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.
Return value
Dział zatytułowany „Return value”This function returns String. Returns barcode content in XML format. Consecutive barcodes values are stored in consecutive numeric xml nodes i.e: barcode1barcode2 etc.
Examples
Dział zatytułowany „Examples”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");