Creating a Text Object from a Formula Created by the GS1 Wizard – CODESOFT Problem
Summary
The formula created by the CODESOFT GS1 Wizard when making a GS1 barcode produces a text string that includes embedded data needed to format the barcode correctly. However, that embedded data makes it difficult to use that formula for other purposes (e.g. print the GS1 number in a different place on the label). This article shows how to use the GS1Norm feature to convert the data in that formula that excludes that embedded data.
Explanation
The GS1 Wizard in CODESOFT will assemble the elements of your GS1 code (e.g. GTIN, Manufacture Date, Expiration Date, Serial Number, etc.) according to GS1 standards, and create both:
- Formula – that includes the GS1 data elements (e.g. GTIN, Serial Number, etc.) and embedded data that tells the CODESOFT barcode the correct GS1 formatting
- Barcode – using the formula above

The formula for the barcode data above is “{CODE B}21” & output({SN}) & “{FNC1}” & “240” & output({REF2}). Where SN and REF2 are variables from a database (or When printed)
GS1 Data
SN = 05122016
REF2 = SA06280
12 = the “SN” application identifier
240 = the “REF2 application identifier
Embedded Data
{CODE B} = Calls out the barcode symbology
output({SN}) = use the ‘formatted SN value’ rather than the actual value
“{FNC1}” = insert FNC1 into the barcode
output({REF2}) = user the ‘formatted REF2’ value rather than the actual value
However, if you link this formula to a standard text object (text field on the label) will read: {CODE B}210512.
Solution
TEKLYNX has included a handy function called GS1Norm. You can use this function in a formula to generate the human readable text from the GS1 formula created by the CODESOFT GS1 Wizard.
Steps:
- Create a New Formula – example: GS1Norm Example)
- Enter GS1Norm Function into New Formula – example: GS1Norm({C128_00})

- Link Text Object to New Formula – example below

Author
Related Articles
- Loftware Redirect Print to PDF action using multiple printer seats
- License is failed – TEKLYNX CENTRAL Error Message
- Loftware Web Designer vs Desktop Designer
- Loftware Workday API Splitting Print Jobs
- Planning a BarTender Server Migration and Upgrade – BarTender Instructions Article
- Deciding on an In-Place Upgrade, Test Server, or Migration – BarTender Reference Article

