Attach to Record
From Script:
Attach Label to Record - Automated - Attach a barcode label to a record via automation or background process:
Include the code below in any area where server-side scripting is allowed:
var barHelper = new x_yala_bargen.BarcodeGeneratorHelper();
barHelper.saveBarcodePDF(barcodeID, tableName, recID, destTable, destID, true);barcodeID: SysID of the Barcode Generator record to use for barcode generation
tableName: Table of the record being referenced for barcode generation
recID: SysID of the record being reference for barcode generation
destTable: Table where the resulting PDF should be attached
destID: SysID of the record to which the resulting PDF should be attached
Attach Barcode to Record - Automated - Attach a barcode part to a record via automation or background process:
Include the code below in any area where server-side scripting is allowed:
var barHelper = new x_yala_bargen.BarcodeGeneratorHelper();
barHelper.saveBarcodeSVG(barPartID, tableName, recID, destTable, destID);barPartID: SysID of the Barcode Part record to use for barcode generation
tableName: Table of the record being referenced for barcode generation
recID: SysID of the record being reference for barcode generation
destTable: Table where the resulting SVG should be attached
destID: SysID of the record to which the resulting SVG should be attached
From Form:
Attach Label to Record from Label Button - Attach a barcode label using the built-in Attach button:
Enable the 'Attachable' option on the Barcode Generator record for the desired barcode label
Any place where the in-browser view of the barcode label is enabled (form, dialog box (modal), ui page, widget), the 'Attach' button can be clicked to attach the barcode label to a record.

Attach Label to Record from Form Button (PDF) - Attach a barcode label to a record as a PDF via a button click:
Visit Barcode & QR Code Generator -> UI Actions in the left nav. Locate and open the UI Action titled 'Test Attach Barcode (Server)'.
Update the Name and Table fields to match the table where you wish to place the button that will open the page. Following the instructions in the commented code, update code values to accommodate your needs. Insert and Stay to create a new record.


Attach Label to Record from Form Button (PNG) - Attach a barcode label to a record as a PNG via a button click:
Visit Barcode & QR Code Generator -> UI Actions in the left nav. Locate and open the UI Action titled 'Test Attach Barcode (Browser)'.
Update the Name and Table fields to match the table where you wish to place the button that will open the Dialog box. Following the instructions in the commented code, update code values to accommodate your needs. Insert and Stay to create a new record.


Attach Barcode to Record from Form Button (SVG) - Attach a barcode part to a record as an SVG via a button click:
Visit Barcode & QR Code Generator -> UI Actions in the left nav. Locate and open the UI Action titled 'Test Attach Barcode Part (Server)'.
Update the Name and Table fields to match the table where you wish to place the button that will open the page. Following the instructions in the commented code, update code values to accommodate your needs. Insert and Stay to create a new record.


From List:
Attach Label to Record from List Choice - Attach barcode labels via a list choice:
Visit Barcode & QR Code Generator -> UI Actions in the left nav. Locate and open the UI Action titled 'Test Attach Barcodes (List)'.
Update the Name and Table fields to match the table where you wish to place the list choice. Following the instructions in the commented code, update code values to accommodate your needs. Insert and Stay to create a new record.
Visit the list view of the specified table, check as many options as desired from the list, and then click the specified UI Action from the drop-down menu. This will trigger an attachment of the barcode labels to the specified records.

Last updated