Skip to Main Content
Spotfire Ideas Portal
Status Future Consideration
Product Spotfire
Created by Guest
Created on Jul 9, 2020

Allow ProgressOperations to run when scripts are triggered by document property changes.

Currently you can only use Prorgess Operations when clicking a button. It would be really helpful to have it work when triggering a script from a document property change.

ERROR BELOW:

===

Could not change property.

Could not execute script 'runOptimization': Attempt to execute a ProgressOperation in the context of a document transaction.

===

Seems like after you manually type into the Input Field it triggers an IronPython script "runOptimization".

The error is caused here because when a script is triggered on Document Property change it is executed in a transaction and ProgressOperation cannot be shown when executing in a transaction.

  • Attach files
  • Guest
    Reply
    |
    Jan 13, 2021

    I have a text area that has a listbox showing distinct values in one of my columns. I then setup a PDF prepared report with a visualization that is filtered based on the document property from that listbox. My python script loops through all the values in the listbox (so updates the relevant document property and filters my visualization) and then exports a single pdf file for each unique value from the listbox. While this works manually when I open the Spotfire file and run the script it does not work via Automation Services when calling the script.

    https://support.tibco.com/s/article/InvalidOperationException-when-executing-the-ExportToPdf-API-from-IronPython-script-through-Automation-Services