Prompts in data connections – Limiting data fetched based on user input
Prompts are a way to filter and limit data from a data connection before you fetch data from the external database. You can add prompts to columns and parameters in a view so that, when you open the analysis with the data connection, you are shown prompts where you can select the values to limit the data by.
About this task
With prompts, you can use a single data connection for multiple purposes, and give the end user the option to select the data of interest. Below are two examples of how prompt dialogs look when you open an analysis with a prompted data connection.

On this page
Adding prompts to a data connection
You can add prompts to views in a data connection when you select data in the Select data flyout or Views in Connection dialog.
Before you begin
- Depending on the type of data source you are creating a connection to, different prompting options might be available. See the help page for the data connector for your data source for details.
Procedure
Results
Using prompts as static filters (switching user input on/off)
You can use prompts as static filters, filtering the data by fixed values for anyone who opens the analysis. To do this, you turn off the ability for users to enter prompt values for the data table. Then the values you enter in the prompts when you add the data connection to the analysis are stored.
About this task
Procedure
- When you have added a data table from a data connection with prompts to your analysis, select Data > Data table properties.
- In the Data Table Properties dialog, select your data table and, on the General tab, clear the check box Prompt for new settings before loading.
- To save your changes, click OK.
Results
Prompts with imported or external data
Prompts are applied both when you load data tables as imported and external. To learn more, see Load methods.
About this task
- Imported data (in-memory)
- When you import a data table from a data connection, the data is loaded when you open the analysis and when you reload data. Your selection in prompts is applied as a filter to the query from Spotfire to the external data, so that you only import the relevant data into the Spotfire data engine.
- External data (in-database)
- When you keep a data table external, Spotfire queries the external database for every action in the analysis. Your selection in prompts is applied as a filter in each query. Because queries are sent frequently and the query length is affected by prompts, prompts might have an impact on performance for external data.
Limitations
There are some contexts where you cannot use prompts. Prompts require user interaction, which makes them unsuitable for automated scenarios. The following are limitations to keep in mind for prompts in data connections:
About this task
- The type of prompts you
can use depends on the connector you are using:
- With some connectors, you cannot select all prompt types for columns.
- With some connectors, you cannot select all prompt types for parameters.
- With some connectors, you cannot load a list of values in the prompt, which means you must enter or paste values manually.
- You cannot use prompting in analyses you want to open with Automation Services.
- You cannot use prompting in analyses configured with scheduled updates.
- With the exception of connections to SAP BW BEx queries, prompting is not supported for data connections to cube data sources. See Adding prompts for BEx queries in a SAP BW connection, for more information on defining prompting for SAP BW BEx queries.
- You cannot specify prompt values via configuration blocks.
).