Details on Document Properties – Scripts


The Scripts tab of the Document Properties dialog is where you manage the IronPython scripts and JavaScripts in your analysis. You can create new scripts, edit existing ones, and delete scripts you no longer want to use.

Note: For security reasons, there are some restrictions for using scripts. For more information, see Usage of Scripts. See also Manage Trust.

To reach the Document Properties dialog:

  1. On the menu bar, select File > Document properties.

  2. Select the Scripts tab.

Option

Description

Available scripts

Lists all currently defined scripts.

Note: The Remark field can contain information about whether a script is trusted or not. Scripts that you have created yourself are trusted, and so are scripts saved as trusted to the library by a member of the Script Author group.

If you receive an analysis file containing a script directly from another person, the script will be listed as "Not trusted". This does not necessarily mean that the script contains any unsafe material, but you should determine whether you trust the script or not by inspecting it in the Edit Script dialog. By clicking OK in the Edit Script dialog, the script will be trusted. If you know all scripts are safe, you can click Trust all in the Manage trust dialog.

However, due to security reasons, scripts cannot be used in a TIBCO Cloud Spotfire web client environment. In a Spotfire on premises web client environment, scripts can be executed if they are saved as trusted by a member in the Script Author group. See also Usage of Scripts and Data Functions.

New

Opens the New Script dialog where you can define a new script.

Import

Opens a dialog where you can select an analysis file from which to import all available scripts.

Note: Spotfire compares the scripts you are trying to import with already existing scripts. A script whose script body is identical to an existing script will not be imported even if it has a different name.

Edit

Opens the Edit Script dialog where you can edit the selected script or its parameters.

Delete

Deletes the selected script.

Manage trust

Opens the Manage trust dialog where you can review and trust all the scripts in the analysis, together with any other custom extensions such as mods or data functions.

Necessary input for the selected script

Lists all parameters that have been defined for the selected script. Click a parameter to modify the input. Different parameter types have different input settings.

See also:

Details on Document Properties - General

Details on Document Properties - Library

Details on Document Properties - Markings

Details on Document Properties - Filtering Schemes

Details on Document Properties - Properties

How to Edit Document Properties

Manage Trust