Attach to Record

From Script:

Attach to Record - Automated (Server-side) - Attach a barcode label to a record via automation or background process:

  1. Include the code below in any area where server-side scripting is allowed:

varbarHelper = 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

This option utilizes server-side barcode generation. The resulting file type is PDF.

From Form:

Attach to Record from Label Button - Attach a barcode label using the built-in Attach button:

  1. Enable the 'Attachable' option on the Barcode Generator record for the desired barcode label

  2. 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.

All options to attach barcode labels from label utilize client-side barcode generation. The resulting file type is PNG.

Attach to Record from Form Button (Server-side) - Attach a barcode label to a record via a button click w/ server-side barcode generation:

  1. Visit Barcode & QR Code Generator -> UI Actions in the left nav. Locate and open the UI Action titled 'Test Attach Barcode (Server)'.

  2. 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.

This option utilizes server-side barcode generation. The resulting file type is PDF.

Attach to Record from Form Button (Client-side) - Attach a barcode label to a record via a button click w/ client-side barcode generation:

  1. Visit Barcode & QR Code Generator -> UI Actions in the left nav. Locate and open the UI Action titled 'Test Attach Barcode (Browser)'.

  2. 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.

This option utilizes client-side barcode generation. The resulting file type is PNG.

From List:

Attach a Record from List Choice - Attach barcode labels via a list choice:

  1. Visit Barcode & QR Code Generator -> UI Actions in the left nav. Locate and open the UI Action titled 'Test Attach Barcodes (List)'.

  2. 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.

  3. 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.

This option utilizes client-side barcode generation. The resulting file type is PNG

Last updated