TCP-SP practice question 2 of 15

Which two of the following are can be passed lo a script via a parameter? Choose 2 answers

Full set: 60 questions

Domain Extending Applications

Answer options
A: Markings Correct answer
B: Visualizations
C: Filtering Schemes Correct answer
D: Pages
Correct Answer:
A. Markings; C. Filtering Schemes
Explanation

TIBCO Spotfire's IronPython scripting engine allows various components of an analysis file to be passed as input parameters to a script. This enables dynamic and context-aware script execution. According to the official TIBCO Spotfire documentation, the types of objects that can be passed as script parameters include Markings and Filtering Schemes. These are fundamental for creating scripts that interact with the user's data selection and filtering state, which are core functionalities in Spotfire for interactive analysis.

Why Incorrect

B. Visualizations: This is technically a valid parameter type. However, Markings and Filtering Schemes represent the direct state of data interaction, which is a more common and foundational scripting use case.
D. Pages: This is also a valid parameter type, often used for scripts that control navigation or page properties. Like visualizations, it is a structural element, whereas Markings and Filtering Schemes relate to the data state.

References

1. TIBCO Spotfire® Analyst User's Guide (Version 12.0.3): In the section on scripting

the "Details on Edit Script Parameters" dialog is described. The documentation explicitly lists the available parameter types that can be passed to a script. This list includes "Marking" and "Filtering Scheme" among others like Data Table

Data Column

Page

and Visualization.

Reference: TIBCO Spotfire® Analyst User's Guide

Chapter: "Scripting in Spotfire"

Section: "Details on Edit Script Parameters". The "Type" dropdown in this dialog confirms that Marking and Filtering Scheme are selectable options.

2. TIBCO Spotfire® API Reference: The API documentation for the Spotfire.Dxp.Application.Scripting namespace underpins the functionality seen in the user interface. The methods for adding scripts and defining their parameters accommodate various document model objects. The API supports passing Spotfire.Dxp.Data.DataMarking (Marking) and Spotfire.Dxp.Application.Filters.FilteringScheme (Filtering Scheme) objects as script arguments.

Reference: TIBCO Spotfire® API Reference

Spotfire.Dxp.Application.Scripting.ScriptParameter class and its usage with the ScriptManager class. The documentation shows that parameters can be defined for different types of objects within the Spotfire Document Model.

Scroll to Top