Adding Prompts to Data Connections


If desired, you can configure your data connection to prompt for parameters or columns values to filter on, as the view is retrieved. This is one way you can use a generic data connection for multiple purposes and allow the end user of the connection to select the data that is of interest for him or her only. The view and, hence, the resulting data table will be pared down for each prompt, before the next column in sequence is processed.

To set up a data connection with prompts:

The steps below show an example of how to add prompts to a SAP HANA connection that is going to be saved in the library. However, prompting is available for most types of data connections, both shared and embedded.

  1. Select Data > Manage Data Connections.

  2. Select Add New > Data Connection > SAP HANA .

    Comment: You can also add a new Connection from Data Source in Library. If this is the case, you will select a data source, login and then continue from step 4.

  3. In the SAP HANA Connection dialog, specify the required settings and click Connect.

  4. In the Views in Connection dialog, select the tables you want to work with in Spotfire by double-clicking them in the Available tables in database list.

    Response: The selected tables are shown in the Views in connection list.

  5. In the Views in connection list, click on the table for which you want to define prompting.

  6. Click Define Prompting.

  7. In the Define Prompting dialog, click New....

  8. In the New Prompt dialog, select the column or parameter to prompt for.

  9. Select the Prompt type to use.

    Comment: You can choose from Single selection, Multiple selection, Range or Manual input prompts

  10. If you selected Multiple selection, you can specify the minimum number and maximum number of values that can be chosen in the prompt.

  11. Type a Description explaining what type of value that the end user should select or type.

    Comment: This text will be shown in the prompt dialog when the data connection is opened. It is especially important to describe valid values when you set up prompts of the type 'Manual input ' for string columns.

  12. If you want to add more prompts, repeat steps 7-11.

  13. Click OK.

  14. When you are done, click OK to close the Define Prompting dialog.

  15. Click OK to close the Views in Connection dialog.

  16. Click Save and specify where you want to save the data connection in the library.

To show prompts when opening an analysis with an embedded connection with prompting:

Note: If you have saved an analysis with an embedded connection with prompting, by default, the end user will not be prompted for input upon opening the analysis. The data selection will be based on the selection that you made in the prompts, when authoring the analysis. Follow these steps to show the prompts and let the end user define parameter or column values, upon opening the analysis.

  1. Select Data > Data Table Properties.

  2. In the Data Table Properties dialog, under the General tab, click Linked (individual settings per source).

  3. Select Prompt for new settings before loading.

  4. Click OK.

Known Limitations

See also:

Adding Data Connections to an Analysis

How to Work with Data Connections and their Data Sources in the Library

What is a Data Connection?

What is a Connection Data Source?