Skip to main content
Version: Classic

QR-Code Generator


This document function allows you to create various bar and QR codes.

Configuration:

<Configuration>
<QrCode id="StaticQRCode" format="QR_CODE" type="text">Vaue</QrCode>
</Configuration>
note

NOTE

  • Since a QR code cannot be empty, in the case of empty content the text "no content" is set.
  • Caution is required with vCards, because even with small distances or not adhering to specifications, mobile phone readers cannot read the QR code.

Attributes

id: Name in the designer; with a dot folders can be created (e.g. Folder.QrCodeName)

type: type of the QR code

Possible values:

ValueDescription
textStatic text that will not be modified
dataA OneOffixx data element, such as the profile name (Profile.User.FirstName) or the company website (Profile.Org.Web)
dynamicStatic text mixed with OneOffixx data elements

height: Height of the QR code; the attribute is optional. If it is not specified, 100px is taken as default.

format: Format of the QR code; there is no check whether the value in value has any place in this format.

Possible values:

ValueConstraints
AZTEC
CODABAR
CODE_39Only numbers possible
CODE_93Only numbers possible
CODE_128Only numbers possible
DATA_MATRIX
EAN_8
EAN_13
ITF
PDF_417
QR_CODE
RSS_14
RSS_EXPANDED
UPC_A
UPC_E
All_1D
UPC_EAN_EXTENSION
MSI
PLESSEY

Examples

With static content:

<QRCode id="StaticQrCode" type="text">This is a static text.</QRCode>
<QRCode id="WLANQrCode" type="text">WIFI:S:ssidName;T:WAP2;P:password;;</QRCode>

With OneOffixx data:

<QRCode id="OneOffixxDataViaID" type="data">Profile.User.LastName</QRCode>
<QRCode id="OneOffixxDataViaXPath" type="data">{*//Text[@id='Profile.User.LastName']}</QRCode>

With dynamic code:

<QRCode id="TextWithData" type="dynamic">Hello, my name is {Profile.User.FirstName} {Profile.User.LastName}.</QRCode>
<QRCode id="vCard" height="300" type="dynamic">BEGIN:VCARD
VERSION:3.0
N:{Profile.User.LastName};{Profile.User.FirstName}
FN:{Profile.User.FirstName} {Profile.User.LastName}
ORG:{Profile.Org.Title}
TITLE:{Profile.User.Title}
TEL;TYPE=WORK,VOICE:{Profile.User.Phone}
TEL;TYPE=HOME,VOICE:{Profile.User.Phone2}
ADR;TYPE=WORK:;;{Profile.Org.Postal.Street};{Profile.Org.Postal.City};;{Profile.Org.Postal.Zip};{Profile.Org.Postal.Country}
EMAIL;TYPE=PREF,INTERNET:{Profile.User.Email}
URL:{Profile.Org.Web}
REV:2015-03-31T08:30:10Z
END:VCARD
</QRCode>
warning

ATTENTION
No indentations may be made in the code! (The data will not be found otherwise.)