Skip to Main Content
Spotfire Ideas Portal
438 VOTE
Status Future Consideration
Product Spotfire
Categories Scripting
Created by Guest
Created on Feb 6, 2016

Run scripts when something changes in the application

Scripts are currently tied to buttons in the text area and they have to be triggered by the user. It should be possible to execute a script as a response to some application event like data reload, marking changes or visualization axis changes. This would make it possible to add more complex behaviors to a Spotfire application that can't be specified declaratively.

  • Attach files
  • Guest
    Reply
    |
    Apr 16, 2020

    YESSSS!!!!!! This is great.and exactly what we need. I just wish it was OOB because it will take some time to get this through our security deployment process for extensions (before I can get my hands on it).

  • Admin
    Magnus Rylander
    Reply
    |
    Apr 16, 2020

    A Data Function recently published on TIBCO Community Exchange allows you to trigger IronPython scripts for the following events:

    • The initial opening of an analysis file

    • A Marking or Filtering selection change

    • A Document, Table or Column Property change

    For more information, read https://community.tibco.com/wiki/custom-datetime-data-function-tibco-spotfirer

    Download the extension at: https://community.tibco.com/modules/custom-datetime-data-function-tibco-spotfire

  • Guest
    Reply
    |
    Oct 17, 2019

    On slider move

  • Guest
    Reply
    |
    Nov 14, 2018

    OnFilter, OnPageChange, OnMark, OnUnmark, OnActivatePage, OnDeactivatePage, OnResetFilters etc. 

  • Guest
    Reply
    |
    Nov 14, 2018

    + vote for the idea. Another workaround is to use Calculated Value and put 'DOMSubtreeModified' event listener in JavaScript code. Somehow Spotfire contains the events mechanism for R and Javascript but not for the Spotfire model itself. At the end it is enough to make analog of Calculated Value (but changing Document Property directly) and this should be enough to execute a script. For example, Calculated Value in the Text Area is not required any more since it the suggested idea + "Label" to the property will do the same functionality and even more.

  • Guest
    Reply
    |
    Feb 27, 2018

    I agree with Boris, the current work-around adds complexity and delay.  

    The IronPython script cabability (on its own) should have the same options to trigger that a data function has: Filtering and Marking. 

  • Guest
    Reply
    |
    Feb 27, 2018

    It is a badly needed feature.  The workaround of executing TERR script to launch IronPython script adds unnecessary delay and complexity. It takes seconds for Web Player to Stats Server round trip for no reason other than to launch an IronPython script.

  • Guest
    Reply
    |
    Feb 27, 2018

    or in the event a user changes the color of an entry in a legend.

  • Guest
    Reply
    |
    Jun 6, 2017

    ...or filter changes

  • Guest
    Reply
    |
    Apr 28, 2017

    I give a big HELL YEAH for this capability.

  • Guest
    Reply
    |
    Jan 10, 2017

    Execute script on page load would also be useful in some scenarios. would like to have this feature in Spotfire.

  • Guest
    Reply
    |
    Jul 19, 2016

    Agree with Hector - the flow for auto running scripts is:

    Data Function (auto refresh=true) output to -> Document Property -> Script on Document Property value change -> propagate out to other doc properties from there OR call other scripts from within first script.

  • Guest
    Reply
    |
    Mar 30, 2016

    There is a work-around using a TERR data function and property that triggers an IronPython (because TERR data functions can listen to filters an markings).  To a Spotfire user, this work-around is very clunky and requires Stat Services to run on the Web.

    IronPython scripts need to have the same ability to listen to a filter or marking as a TERR data function or allow for an IronPython data function.

8 MERGED

Introduce Document Events to enable Scripts to run e.g onFilterChange etc.

Merged
it would be great to expose some underlying events to IronPython scripts, like the Excel VBA event object model. Some examples are: onFilterChange onFilterReset onMark onUnmark onPageActivate onPageDeactivate onDocumentOp...
over 6 years ago in Spotfire / Scripting 3 Future Consideration
2 MERGED

Ability to trigger scripts (Python/JavaScript) as a result of a selector change

Merged
It would be useful to be able to trigger a script "onChange" of a visualization in order to synchronize visualizations when the axis selector of one visualization is changed. While most of this can also be achieved using a central property a) som...
over 6 years ago in Spotfire / Scripting 0 Future Consideration
1 MERGED

action on color by event

Merged
I have multiple pages (some with multiple visualizations) that depict info on the same objects. In my case, the ships that visit our terminal. Although I can assign a color to each ship, there are just too many and thus I often have the situation ...
about 6 years ago in Spotfire / Visualization 0 Future Consideration
1 MERGED

Enable script execution on marking and filtering changes

Merged
Add a script button in the marking section of document properties to enable script execution on a change to marking. Add a script option to filters, either on specific filter items (maybe set in column properties) - but also add a script butto...
almost 6 years ago in Spotfire / Scripting 0 Future Consideration
1 MERGED

Add script options for document and page actions

Merged
Can we add script options, perhaps in Document Properties, to execute a script on document actions (open, close, before save, after save, on data refresh). Also, can we add script options to execute when page events occur (page activate, page ...
almost 6 years ago in Spotfire / Scripting 0 Future Consideration
18 MERGED

Create Actions on Marking

Merged
It would be very beneficial if you could make an action event occur when a column is marked. This would allow you to create drill through for any type visualization regardless of the type as well as data manipulation which might need to be done if...
over 6 years ago in Spotfire / Scripting 4 Future Consideration
14 MERGED

Execute Python Scripts When Dashboard Opens

Merged
Python script to automatically execute after dashboard finishes loading and all data table that are linked source are finished updating.
over 6 years ago in Spotfire / Scripting 0 Future Consideration