2022.2

Table Of Contents
whenyouinsertaDivintoaparagraph,theparagraphgetssplitintwo.Thismeansyou
endupwithtwoparagraphswiththeDivinbetween.
5. UnderScript,selectthefieldthatcontainsthebarcodevalue.Thebarcodetypedictatesthe
lengthandexactformatoftherequiredvalue.Foradetaileddescriptionorforbackgroundinform-
ationonaspecificbarcode,pleaserefertothedocumentationprovidedbytheindividualbarcode
supplier.Notethatsomebarcodereadersmayrequirespecificparametersaswell.
Ifitisnecessarytoconcatenatefieldstocomposethebarcodevalue,editthescriptafteradding
thebarcode;see"Barcodescript"below.
Note: ForbarcodesthatrequireaChecksum,theDesignercancalculateaChecksumif
thatisn'tprovidedbyyourdata.Inthatcasethefieldshouldcontaintherequiredvalue
minustheChecksum.ToincludeacalculatedChecksuminthebarcodevalue,editthebar-
codepropertiesafteraddingthebarcodetothetemplate;seebelow.
6. ClickOKtoclosethedialog.
Inthetemplatethebarcodeshowsupasagraybox.Theassociatedbarcodescriptisaddedtothe
Scriptspane.Toseethebarcodescriptworking,toggletothePreviewtabintheWorkspace.
Abarcodeisalwaysaddedwiththebarcodetype'sdefaultpropertiesanddimensions,buttheycaneas-
ilybechanged;see"Barcodetypeandproperties"below.
Changingabarcode
Barcode script
Thebarcodescriptdetermineswhichvalueisfedtothebarcodegenerator.Double-clickthescripton
theScriptspanetochangewhichfieldorfieldsareaddedtothebarcodevalue.Whenyouselectmore
thanonefield,thescriptputsthevaluesoftheselectedfieldsinonestringandpassesthattothebar-
codegenerator.
Tip: Ifyoudon'tknowwhichscriptmatchesthebarcode,clicktheboxthatcontainsthebarcode
andchecktheIDandclassofthatboxontheAttributespane.ThentakealookattheScripts
pane:theselectoroftheassociatedscriptisthesameastheIDand/orclassofthebarcodebox.
Ifabarcodehasmorethanoneclassname,onlythefirstoneisusedinthescript'sselector.
Barcode type and properties
Abarcodeisalwaysaddedwiththebarcodetype'sdefaultpropertiesanddimensions.
Page 177