Skip to Main Content
Spotfire Ideas Portal
Status Future Consideration
Product Spotfire
Categories API
Created by Guest
Created on Oct 15, 2020

API to force all data functions in a document to execute in Synchronous mode

We need a global flag to set via API to force all data functions to execute in Synchronous mode in a document. This is neede for Automation where we loop on rows in a table plot, mark them one by one and we expect all data functions to update when row marking happens (related to case number: 01896903 ). Currently data functions wait until we finish the markings in the loop then they execute at the end.

We need a way to force datat functions to execute whenever the triggering event happens and not to wait until Spotfire gets Idle.

  • Attach files
  • Admin
    Magnus Rylander
    Reply
    |
    Jan 20, 2021

    Could possibly be solved by using:

    DataFunction.UpdateBehavior
    DataFunction.NeedsRefresh
    DataFunction.ExecuteSynchronously

    E.g something like:

    while(allDataFunctions.Any(d => d.UpdateBehavior == Auto && d.NeedsRefresh))
    {
    allDatafunctions.first(d => d.UpdateBehavior == Auto && d.NeedsRefresh).ExecuteSynchronously()
    }