MicroStrategy ONE

Barcode Reader Prompt

The Barcode Reader prompt lets users scan an item's barcode using an iPhone or Android device's camera to answer a prompted report or document. Users can also type the barcode directly using a numeric keypad.

Users can only scan item barcodes on an iPhone or Android device. However, the numeric keypad is available on the iPhone, iPad, and Android devices. Android devices support Value prompts with the display style set to Barcode Reader.

You can add a Barcode reader prompt to a report or document by defining a prompt and setting its display style to Barcode Reader. The prompt as then displayed as a Barcode Reader when the report or document is executed on the mobile device.

You can:

To support the scanning of barcodes using a mobile device, you must store the barcode data used in the associated prompt with a database data type that supports text data. MicroStrategy recommends using the VarChar data type for your database to store the barcode data.

The following barcode types are supported:

  • UPC-A
  • UPC-E
  • EAN-8
  • EAN-13

For general information about prompts, see About Prompts. For more information on prompts displayed on mobile devices, including the Geo Location and Barcode Reader prompts, see Creating Prompts for Mobile Devices.

To Create a Value Prompt Displayed as a Barcode Reader

DHTML must be enabled. See How to Enable DHTML in MicroStrategy Web.

Click Create on any page, point to New Prompt, and select Value.

To Define the Prompt Type to be Presented to the User

  1. On the Definition tab, select the Text prompt option.
  2. On the General tab, specify a title and instructions for the prompt in the Title and Instructions fields.

To Restrict the Number of Prompt Answers

  1. To require users to answer the prompt before running the report, specify whether the prompt requires an answer. Select the Prompt answer is required checkbox.
  2. To specify the minimum number of characters that can be entered as a bar code, select the Minimum number of characters checkbox and type a value in the field.
  3. To specify the maximum number of characters that can be entered as a bar code, select the Maximum number of characters checkbox and type a value in the field.
  4. You can determine whether users can save and reuse their prompt answers, and if so, how many prompt answers they can save for the prompt. From the Personal answers allowed drop-down, select one of the following:

    • To keep users from saving and reusing prompt answers, select None.
    • To allow users to save and reuse only one prompt answer, select Single.
    • To allow users to save and reuse multiple prompt answers, select Multiple.

To Specify the Layout and Display Style of the Prompt

  1. On the Style tab, from the Display style drop-down, select Barcode Reader.
  2. To ensure that the prompt's text fields and options are of a fixed size, select the Fixed textbox width checkbox and type a value in the field.

To Save the Prompt

  1. Click Save As.
  2. Click OK.

To Create an Attribute Element Prompt Displayed as a Barcode Reader

  1. On the home page, click New Prompt New Prompt icon.

    If you are on a folder page, you can click Create on the icon bar on the left, and then click New Prompt.

  2. Click Attribute Element List.

To Determine the Attribute Whose Elements the User is Able to Choose From

Click Select Attribute. Select the attribute whose elements are displayed in the prompt and click OK. Users select their filter criteria from a list of these attribute elements.

To Define the Specific Elements the User is Able to Choose From

  1. Choose one of the following options:

    • To display all of the attribute's elements to the user when they are answering the prompt, select List all elements (no restriction).
    • To create a list of attribute elements from which users can choose, select Use a predefined list of elements. Click Add, select the elements to include in the list, then click OK. To remove an object, highlight it and click Remove. To remove all items, click Clear.
    • To filter the number of attribute elements displayed to the user, select Use a filter to reduce the number of elements. This option is useful for attributes with a large number of elements, such as Customer or Employee. You can select a filter that returns a specific set of customers, for example, the top 100 customers this month. Browse to and select the filter.
  2. On the General tab, specify a title and description for the prompt in the Title and Instructions fields.

To Restrict the Number of Prompt Answers

  1. To require users to answer the prompt before running the report, specify whether the prompt requires an answer. Select the Prompt answer is required checkbox.
  2. Set the maximum and minimum number of prompt answers allowed, if desired. Enter these numbers in the Minimum number of answers and Maximum number of answers fields. You can specify a minimum number even if you do not specify a maximum number.
  3. Determine whether users can save and reuse their prompt answers, and if so, how many prompt answers they can save for the prompt. From the Personal answers allowed drop-down, select one of the following:

    • To keep users from saving and reusing prompt answers, select None.
    • To allow users to save and reuse only one prompt answer, select Single.
    • To allow users to save and reuse multiple prompt answers, select Multiple.

To Specify the Layout and Display Style of the Prompt

  1. On the Style tab, from the Display style drop-down, select Barcode Reader.
  2. From the Barcode mapping attribute form drop down list, select the attribute form to use to look up item barcodes. When a user scans or types a barcode with the mobile device, the barcode value is used to filter the list of attribute elements. Only the elements whose attribute form value matches the barcode are displayed.

To Save the Prompt

  1. Click Save As.
  2. Click OK.

Related Topics

Value Prompt

Attribute Element List Prompt

Introduction to Prompts for Mobile Devices

Creating Prompts for Mobile Devices