Spotfire® User Guide

Adding an action that refreshes a data function to a text area or a visualization item

As an analysis author, you can add a button, link or image in a text area (using the installed client) that refreshes a previously executed data function when clicked. This can make it possible for other users of the analysis to find and update the data function, even if they are not data function authors.

About this task

For example, if the data function has been configured to work with filtered rows, many people can access the analysis, filter to their special area of interest and click on a button to receive calculation results relevant for them.

Note: For security reasons, there are some restrictions for using data functions. For more information, see Usage of scripts and data functions and Trust for script written in IronPython, JavaScript or within data functions under Manage trust.

Before you begin

You must have some data loaded in the analysis (in the installed client) and the analysis must be in Editing mode. The data function must have been executed once within the analysis, so a data function instance is available in the document, and Refresh function automatically must be cleared.

Follow the steps in Adding actions to a text area or Adding actions performed when clicking on visualization items and make sure you select Data function in step 3.

Procedure

  1. Under Available data functions, locate the data function of interest.
    Note: Only the data function that have been executed within the current analysis and that do not use the Refresh function automatically feature are listed here. Read more about data functions under Data functions and the f(x) flyout.
  2. When you are done, click OK.