QR code

Creates a graphical image in the form of a two-dimensional bar code which, when read by a QR scanner, directs you to a particular web site.

Typically, QR scanners are available for download on camera-enabled smart phones for free. After you line up the scanner to the QR code, you are automatically taken to a specific web site that was configured on the QR code view.

Data binding

Set or modify the data binding for the view in the General properties tab. The QR code view is bound to a String variable that has a default value set to http://www.ibm.com.

Configuration properties

Under Configuration, set or modify the appearance and behavior properties for the view. Under Events, set the formula configuration properties.

Screen size
A configuration property that has the Screen Sizes icon The Screen Sizes icon beside the property name can have different values for each screen size. If you do not set a value, the screen size inherits the value of the next larger screen size as its default value. If you are using the Process Designer desktop editor (deprecated), you are setting the value for the large screen size. The other screen sizes inherit this value.
Theme definitions
Theme definitions specify the colors and styles for a view and determine its appearance. You can preview the look and feel of views in the theme editor. See Themes.

The appearance configuration properties for the QR code view are shown in the following table:

Table 1. Appearance configuration properties for QR code
Appearance configuration property Description Data type
Label placement The Screen Sizes icon Specifies the label placement for the view:
  • Top
  • Left
Note: Labels on the left change the specified width of the view.
String
Label width Large screen icon The width of the label. You can specify the width in px (pixels), % (percent), or em units. For example, 50px, 20%, or 0.4em. If a unit type is not specified, px is assumed. String
Width The Screen Sizes icon Specifies the width of the view in pixels, percent, or em units. For example: 50px or 20% or 0.4em. If no unit type is specified, px is assumed. String
Height The Screen Sizes icon Specifies the height of the view in px (pixels) or em units. If no unit type is specified, px is assumed. String
Background image URL Specifies the background image for the QR view. String
The behavior configuration properties for the QR code view are listed in the following table:
Table 2. Behavior configuration properties for QR code
Behavior configuration property Description Data type
Error correction level Specifies the error correction levels that are used for QR codes. Each error code adds a different amount of backup data depending on how much damage the QR code is expected to suffer in its intended environment, hence how much error correction might be required.
  • Level L - up to 7% damage
  • Level M - up to 15% damage
  • Level Q - up to 25% damage
  • Level H - up to 30% damage
String

Events

Set or modify the formula configuration properties and the event handlers for the view in the Events properties. You can set events to be triggered programmatically or when a user interacts with the view. For information on how to define and code events, see User-defined events.
The formula configuration properties for the QR code view are shown in the following table:
Table 3. Formula configuration properties for QR code
Formula configuration property Description Data type
QR code formula Specifies the formula or expression to use for calculating the QR code value.

For more information about formulas, see Formulas.

String
The QR code view has the following types of event handlers:
  • On load: Activated when the QR code is loaded. For example:
    me.setQRCode("www.ibm.com")
  • On change: Activated when the QR code value is changed. For example:
    ${Text1}.setText(oldQRCode); ${Text2}.setText(newQRCode);

Methods

For detailed information on the available methods for QR code, see the QR code JavaScript API.

Additional resources

For information about how to create a coach, see Building coaches.
For information about standard properties (General, Configuration, Positioning, Visibility, and HTML Attributes), see View properties.