As a transitional step, this site will temporarily be made Read-Only from July 8th until the new community launch. During this time, you can still search and read articles and discussions.

While the community is read-only, if you have questions or issues requiring TIBCO review/response, please access the new TIBCO Community and select "Ask A Question."

You will need to register or log in or register to engage in the new community.

Customizing the Sample Files Shown on the Start Page in Spotfire Analyst

Last updated:
8:55am May 21, 2020
Table of Contents

This article describes how to customize the samples files displayed on the start page in Spotfire Analyst. By default, TIBCO Spotfire provides users with a number of sample files to introduce them to the application and to provide some example files for inspiration and/or guidance. The image below displays the sample files included in TIBCO Spotfire Analyst 7.6.

Default sample files in TIBCO Spotfire

These sample files can be replaced with other sample files that may be more relevant to a specific market or user context. To replace the files requires access to the TIBCO Spotfire SDK and the TIBCO Spotfire Developer product.  

These are the steps involved in customizing the sample files:

  1. Decide what new sample dxp files to use.
  2. Download the TIBCO Spotfire SDK and run Package Builder.
  3. Create a new configuration in Package Builder and add a TIBCO Spotfire distribution.
  4. Add a new project using the example folder “SpotfireDeveloper.CustomSampleFilesExample” in the Examples\Extensions folder in the SDK.

    You might want to copy this folder to a new location.
  5. Add your new dxp files to the folder (and remove the ExampleN.dxp files).
  6. Edit the SampleFileConfiguration.xml file and decide where the sample files should be displayed.

    The path to the sample file is relative to the folder containing the module.xml file.  
  7. Validate and test the configuration using Package Builder.

    The image below shows a screenshot from Package Builder with the SpotfireDeveloper. CustomSampleFilesExample added as a new project.

    Package Builder with custom sample files
  8. Build a package and deploy it to the TIBCO Spotfire Server for further distribution to the users (requires Administrator rights to the TIBCO Spotfire Server).


If you take the CustomSampleFilesExample and run it without any modifications the following is displayed on the start page:

Example files on start page

Note that it is possible to have a maximum of six different sample files and they will be displayed in a 3x2 table like the image above.

The preview image for the dxp file can be set manually when the dxp is opened in TIBCO Spotfire Analyst using the Document Properties dialog and then selecting the Library tab. The preview image is by default automatically a preview of the active page when the dxp file is saved.

The possibility to customize the sample files was introduced in TIBCO Spotfire Analyst version 7.0.

Note:  If the sample dxp files contain IronPython or JavaScript scripts, the files must also be saved into the Spotfire Library in order for the dxp files not to prompt the user whether to trust those scripts.

For more information about TIBCO Spotfire Developer and how to use the SDK and the Package Builder tool, please visit the TIBCO Spotfire Developer documentation.