Adding Location or Machine Readable Capabilities to a Mobile-Ready Analysis

Creating bar code reading capability

By adding the AppMachineReadableCode document property of data type String to your analysis, you can activate the bar code reader capability on a mobile device that uses the analysis.

About this task

Perform this task in Spotfire Analyst.

Before you begin

The data table you import must have a column containing the data for either a bar code or a QR code. This column must have the data type String.
Note: See Best practices for developing mobile applications with Spotfire® for advice about presenting visualizations in a design that suits your intended screen size.

Procedure

  1. Open a file that contains a string column of bar codes or QR codes.
    Note: Check the Import Settings to make sure the column names and data types are correct.
  2. Create a Table visualization.
  3. On the menu, click Edit > Document Properties, and in the Document Properties dialog, click the Properties tab.
  4. Click New, and in the resulting dialog, provide the reserved name AppMachineReadableCode.
  5. Set the Data Type to String. You can leave the default value blank.
  6. Save your changes.

Results

Your visualization now has the document property required to activate the bar code reading icon on a mobile device that can open it from either the Spotfire Cloud or Spotfire Consumer.

What to do next

Add a text area to display a scanned code.