Usage of Scripts


Various scripts like IronPython scripts, JavaScripts, or scripts written in custom query languages to be executed in external databases can be part of an analysis. If, or under which circumstances, scripts are allowed to be used depend on whether the user is working in an on-premises or cloud environment, and in which product, Spotfire Business Author or Spotfire Analyst.

Also, users can be of different types depending on their authorities controlled by which groups they belong to, and the licenses specified for those groups. Licenses and groups settings are configured in Tools > Administration Manager.

The tables below list what is allowed to do for different combinations of user types and Spotfire products.

On-premises users

Type of user

Analyst

Business Author & Consumer

Create script

Run script

Save script as trusted in library

Create/Run script

No Author Scripts license

No

Yes, if the script is saved as trusted to the library by an authorized* script author.**

No

Scripts cannot be created.

You can only run scripts that are saved as trusted by an authorized script author.

Author Scripts license

Yes

Yes, if the script is trusted by you, or saved as trusted to the library by an authorized* script author.

No

Author Scripts license + member of the Script Author group

Yes

Yes, if the script is trusted by you, or saved as trusted to the library by an authorized* script author.

Yes

*A script author is authorized, if he is a member of the Script Author group.

**If you previously had a license, the scripts that you created by that time can still be run.

TIBCO Cloud Spotfire users

The general multi-tenant Spotfire cloud solution allows self-service script usage for Analyst users only.

 

Analyst

Business Author & Consumer

Create script

Run script

Create/Run script

All users

Yes

Yes, if the script is trusted by you.

For security reasons, scripts cannot be used.

TIBCO Spotfire Cloud Enterprise users

Single-tenant cloud environments can be configured with licenses in the same way as on-premises solutions.

Type of user

Analyst

Business Author & Consumer

Create script

Run script

Save script as trusted in library

Create/Run script

No Author Scripts license

No

Yes, if the script is saved as trusted to the library by an authorized* script author.**

No

Scripts cannot be created.

You can only run scripts that are saved as trusted by an authorized script author.

Author Scripts license

Yes

Yes, if the script is trusted by you, or saved as trusted to the library by an authorized* script author.

No

Author Scripts license + member of the Script Author group

Yes

Yes, if the script is trusted by you, or saved as trusted to the library by an authorized* script author.

Yes

*A script author is authorized, if he is a member of the Script Author group.

**If you previously had a license, the scripts that you created by that time can still be run.

Data functions are another way to enable scripting enhancements in Spotfire. See What are Data Functions? and Introduction for Data Function Authors for more information.

See also:

Script and Data Function Trust

Using Scripts in the Text Area

IronPython Example Scripts

JavaScript Example Scripts

Action Script Examples