Anusha V Posted May 27, 2020 Share Posted May 27, 2020 Hi All, I have a requirement first table A should be loaded after completion of table A then table B should be refreshed, Could please share the iron python script. am using following iron python script but both tableA and B are refreshing simultaneaously. Please help me. from System.Collections.Generic import List, Dictionary from Spotfire.Dxp.Data import DataTable from System.Collections import ArrayList #Refreshing multiple tables: #Note that more than one table can be added to the List object. tables = ArrayList() tables.Add(Document.Data.Tables["DataTable1"]) tables.Add(Document.Data.Tables["DataTable2"]) Document.Data.Tables.Refresh(tables) #As such DataTableCollection.Refresh Method refreshes the given tables in dependency order. #OR Document.Data.Tables.RefreshAsync(tables) #And DataTableCollection.RefreshAsync Method (IEnumerable< DataTable> ) refreshes the given tables in dependency order. #Tables that have asynchronous refresh (i.e. Data On Demand and Data Functions) and tables that depend on them will be refreshed #in later transactions. # Another possible option: Tbls = List[DataTable]() Tbls.Add(Document.Data.Tables["DataTable1"]) Tbls.Add(Document.Data.Tables["DataTable2"]) for i in Tbls: Document.Data.Tables.Refresh() Thanks, Anusha Link to comment Share on other sites More sharing options...
David Boot-Olazabal Posted June 11, 2020 Share Posted June 11, 2020 Dear Vonukuri, Please have a look at this post, it may help you: https://community.spotfire.com/questions/execute-ironpython-script-after-ta.... Kind regards, David Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now