Parameterized information links
With parameterized information links, you can set up a data source to return only information applicable for a certain user or group. Depending on which user is logged in and accesses the information link, or, for example, from where the user accesses the information link, different subsets of the data are available.
The concept is similar to the personalized information links, but more general, and needs API configurations to work properly. Although parameters are created in Information Designer, their properties and definitions are defined in the API.
A parameterized information link is an information link that contains a number of parameters. In Information Designer, you define these parameters with a name and a type, and you can use the parameters when creating various elements in the information link. To be able to open a parameterized information link in Spotfire, you must be able to provide the values for these parameters. How you do this is determined in the API.
Why use parameters?
For example, you can use parameters to set up a web client analysis with data loaded from a database. If the web client analysis is integrated into a portal or similar, you can define the contents of the analysis with parameters. The values of these parameters can then be defined by another application in the portal, or by settings the users have applied in other parts of the portal.
Another example is if you wanted to create an analysis file, but then you want to be able to easily create different versions of it for different users. You can then set up a template file using parameterized information links, and from that file, and using the API, create different files with different parameter values.
Where can parameters be included?
| Element type | Parameterized property |
|---|---|
| Column |
|
| Filter |
|
| Procedure |
|
| Information Link |
|
| Data Source |
|
Examples
For filter condition expressions, parameters can be used as the condition for the selected columns.
In the SQL editor, you can set parameters directly.
FROM
"Sales"."dbo"."SalesandCost" S1
WHERE
(S1."Sales" > ?MinSales)
Syntax
?param_name Where "?" indicates that it is a parameter and
param_name is the name the parameter is identified by.
- Creating an information link
- Modifying an information link
- Deleting an information link
- Adding hard filters to information links
- Adding prompts to information links
- Using prompt groups in information links
- Editing an information link parameter
- Setting a timeout for an information link
- Editing the SQL of an information link
- Selecting join path in an information link
- Opening information links from Information Designer