Jump to content

Python script to check if any tables are refreshing


Stephen Kay

Recommended Posts

Is there anyway in python to loop through all the tables in the dxp and check if any of them are still refreshing

I've currently got a script that refreshes some tables, but if the user trys to execute another script while these tables are still refreshing then it crashes and boots them out on the web player.

From the looks of this URL it should be possible to check if a table is currently refreshing, but i can't get the syntax right.

https://docs.tibco.com/pub/doc_remote/spotfire/7.9.0/TIB_sfire-analyst_7...

Link to comment
Share on other sites

A sample script would be as below,

table= Document.Data.Tables["myTableName"]

print table.RefreshingIf you are looking to call another script after a table(s) finishes to refresh then probably you can take advantage of the callback method. check the sample script below,

https://community.spotfire.com/wiki/how-execute-ironpython-script-after-table-refresh-completion-tibco-spotfire

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...