TIBCO Spotfire Community

Welcome to TIBCO Spotfire Community Sign in | Join | Help

Add Action Scripts to the Text Area

A huge addition to the TIBCO Spotfire Developer license in Spotfire 3.1 is the ability to use a scripting language to add document-specific scripts to Action Controls in the Text Area. These scripts have access to the entire Spotfire C# API and can be executed in both Professional and the Web Player! This will open up an entirely new frontier in the development of sophisticated Spotfire Analytic Applications that behave exactly like the application author wants.

(This new functionality will be an especially welcome addition to DecisionSite power users who built a lot of Guides with JavaScript/COM in DecisionSite!)

IronPython is the scripting language that is supported with this new functionality. IronPython is Microsoft’s officially supported implementation of the Python language and interpreted through the .NET Framework. All the software needed to write and execute Python scripts is deployed with the Spotfire platform engine. Python is an easy to learn language, but in practice the majority of the code you will write behind Active Controls will require much, much less knowledge of the Python syntax and much, much more knowledge of the Spotfire C# API. If you do want to learn the details of the IronPython/Python syntax, Microsoft’s

http://ironpython.net/ site is a great place to start.

Watch the Spotfire Technology Network, this Knowledge Base and the User Community for a lot more information and examples on the power of IronPython scripting to solve many challenges, but the best place to get started is with the Using Scripts in the Text Area topic of the user manual. It takes you through the steps to build and deploy your first script along with a number of useful example scripts.

Comments
 

hvmarck said:

Cool Greg! I just used it to implement a word cloud in a text area. To recalculated a button needs to be pressed (launching the IronPython script). I'm wondering if it is possible to launch IronPython scripts automatically when a selection changes?

March 12, 2010 1:38 PM
 

Greg Goldsmith said:

Currently an end user pressing an Action Link (displayed as a button or hyperlink) is the only way to trigger a script, but it would obviously be a good future enhancement to have the script triggered in multiple ways.

Would you be willing to post the IronPython function you wrote to the Spotfire Developer's User Community, spotfire.tibco.com/.../22.aspx ?

March 15, 2010 10:38 AM

About Greg Goldsmith

Greg Goldsmith is the Senior Product Manager of the TIBCO Spotfire Enterprise Analytics Platform. His main areas of responsibility and expertise are the core underlying data engine and the integration, extension, scalability & centralized administration of the visual, interactive data analysis and exploration platform.