Prompt for Data and Importing CSV Files

Prompt for Data

The Choice Entry dialog now contains a third option when choosing how to populate the data of a multi-column list box. The Choice Entry screen can be accessed from Form Design > Properties > Choices by selecting the ellipses from within the Choices field, or by double clicking on an object within the form. The new third option, Prompt for data, allows a DataBlock Designer to request a .csv file be uploaded by a DataBlock runner the next time the DataBlock is run. This is useful for supplementing a query with information found outside of a typical database.

The Prompt for Data option allows MAPS administrators to request a .csv file be upload when a user next opens to DataBlock.

Here, DataBlock Designers may define the fields displayed in the multi-column list box based on a CSV file imported by the end user executing the dashboard.

Here, the MAPS admin may include which Csv headers they expect to be inlcuded in the .csv file uploaded by the user. They may also mark these files as required, and inlcude a custom message inlcuded in the prompt.

Under Expected fields, column headers can be added, deleted, or edited via the Add, Delete, and Edit buttons. Likewise, Designers can simply upload their own .csv file via the Upload from file button to auto-fill the expected header fields.

Under Additional options, a custom message may also be included. This custom message will display along with the request for data when the DataBlock is next run.

Selecting Add or Edit brings up the Column Properties menu, where more options may be configured.

Here the MAPS admin can specify the CSV Column Headers to be expected via the user's uploaded .csv file.

Finally, you'll be able to preview the columns and make any further adjustments.

Preview the expected fields.

When the DataBlock is run, the DataBlock runner will receive the following:

The next user to open the DataBlock will receive this prompt asking for a .csv file uplaod, along with a custom message from their MAPS administrator.

Missing Required Fields

When a CSV header is marked as required by the DataBlock Designer, but is missing from the prompted user's upload, the following message is produced:

Failing to upload the required files results in this message.

This message informs the DataBlock runner which fields are marked as required (field names preceded by an asterisk), as well as which fields are missing from their upload (field names enclosed in parentheses).

Import From File

Fields within a multi-column list boxes may also be populated via the Import From File button. This option appears on the Choice Entry screen when selecting Manual entries when editing a multi-column list box.

The Import From File option only appears when manually inputting the data of a multi-column list box.