IronPython scripts intro

An IronPython script can be added to a Spotfire report through the Text Area visualization. To add an IronPython script to the report:

1)       Add a Text Area visualization to the active page.
2)      Right-click on the new Text Area visualization and click “Edit Text Area”.
3)      Find and click the “Insert Action Control” toolbar button.
4)      The Action Control window will open. In the left-hand list, select “Script”.
5)      Type in a “Display text”.
6)      Click the “New…” button on the right-hand side of the window.
7)      Type in a “Script name” at the top of the “New Script” window.
8)      Copy or type in the IronPython code into the “Script” window.
9)      Click the “Run Script” button to run the IronPython script.

Spotfire has many different ways to interact with IronPython scripts. Below is a list of helpful examples of ways to trigger IronPython scripts.

  1. On document property change
    1. https://community.tibco.com/wiki/how-execute-ironpython-script-tibco-spotfire-when-document-property-changes
  2. On button click
    1. https://docs.tibco.com/pub/spotfire/6.5.0/doc/html/text/text_using_scripts_in_the_text_area.htm
    2. https://techgoje.wordpress.com/2014/12/23/spotfire-ironpython-reset-markings/
  3. On dropdown selection
    1. https://community.tibco.com/wiki/example-script-modify-which-columns-are-shown-table-plotOn graphical table column enteraction
    2. https://docs.tibco.com/pub/spotfire/6.5.0/doc/html/text/text_action_script_examples.htm
  4. On filter change
    1. http://spotfired.blogspot.com/2015/10/update-doc-property-trigger-ironpython.html
    2. https://community.tibco.com/questions/how-trigger-ironpython-script-filter-changes
    3. https://www.cambridgesoft.com/support/EnterpriseSupport/KnowledgeBase/FAQ/details/Default.aspx?TechNote=3210
  5. On marking selection
    1. http://bispotfire.blogspot.com/2015/06/executing-python-script-based-on.html
  6. On report open
    1. https://community.tibco.com/questions/trigger-python-script-page-load
    2. https://support.tibco.com/s/article/Tibco-KnowledgeArticle-Article-44163?_ga=2.239220867.1277363987.1515438057-1300154003.1513629197
    3. https://support.tibco.com/s/article/Tibco-KnowledgeArticle-Article-45867?_ga=2.239220867.1277363987.1515438057-1300154003.1513629197
  7. On clicking a tab
    1. http://spotfired.blogspot.com/2016/10/trigger-script-when-clicking-on-tab.html