Jump to content
  • How to execute an IronPython script in Spotfire® when a document property changes


    This article provide steps of how to execute an IronPython script in Spotfire® when a document property changes

    Introduction

    It can be useful to configure an IronPython script in Spotfire® so that the script executes automatically whenever a Spotfire Document Property changes.  If the script uses the document property as an input parameter this will keep the script up to date.

    • First set up the IronPython script, using the document property as one of the inputs.
    • Access the automatic execution by starting from the document property to be monitored
      • In Spotfire, pull down Edit > Properties > Document Properties.
      • Select the document property to be monitored
      • Click on the "Script..." button to the right.   This opens a new dialog, "Script - Act on Property Change".   Within this dialog box:
        • For the choice, "Each time the property value changes, perform this action:", select "Execute the script selected below:"
        • From the list if available scripts, select the script you would like to have execute automatically.
        • Alternatively you can use the "New...", "Import", "Edit", "Delete" buttons on the right to create an entirely new script or perform other tasks.
        • Make sure the necessary inputs to the selected script are populated, using the dialog box below the list of scripts.
      • Click "OK"

     


    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...