Bar code scanning
You can add a document property to an analysis designed to be used
on an iOS mobile device, to get the ability to scan machine readable codes
(such as QR codes or bar codes). The reserved document property name is
AppMachineReadableCode
and it is of the data type
String
.
An analysis that contains this document property shows an active bar code icon on an iOS mobile device. If the document property is not included in the analysis, the bar code icon is not available. The value of the document property is set by scanning a supported code using the mobile device. It is set to the empty string when no supported code is scanned.
The following machine readable code types are supported:
- UPC-E
- Code 39
- Code 39 mod 43
- EAN-13 (including UPC-A)
- EAN-8
- Code 93
- Code 128
- PDF417
- QR
- Aztec
You can use this functionality to scan a code, and, by creating a table visualization limited by an expression, filter the data to the item with the scanned code. For example, this can be used for inventory control. See Adding a bar code reading capability and Creating an expression to limit the data to the bar-coded entry for detailed instructions.
For more information about designing for iOS mobile devices, see Designing Spotfire® Analytics for Small-Screen Display.
- Adding a bar code reading capability
By adding the document propertyAppMachineReadableCode
to your analysis, you can activate the bar code reader capability of an iOS mobile device that uses the analysis. - Creating an expression to limit the data to the bar-coded entry
When bar code reading capabilities have been added to the analysis, you can add a limiting expression on a visualization to filter to only the last scanned bar code.