I have a use case where i need to render data table(set to on-demand) in text area using python scripting in Spotfire.
The problem at hand is data table is loaded Asynchronously and python script is executed and html turns out to be empty as it takes some 5 sec to load data, i tried using sleep function of 5 secs but that is not appropriate as PROD data load time will vary.
I need to execute the python script in the below manner:
-------Script--------
if table.IsRefreshable and table.NeedsRefresh: table.Refresh()
//#Execute next steps when data is loaded //#Render data table to dynamic html to be displayed in text area