Mitul Gandhi Posted December 16, 2022 Share Posted December 16, 2022 We have created Python data function using "Register data functions" utility to connect to REST endpoints to pull out data into spotfire for visualization. But did not find a way to schedule (auto-trigger) this python data function at some regular interval to pull out latest data into spotfire.Can someone help? Link to comment Share on other sites More sharing options...
Fredrik Rosell Posted December 16, 2022 Share Posted December 16, 2022 Hello,To start with, will the end users be using the analysis in a web client (Web Player) so a solution involving Scheduled Updates can be used (preferred, regular updates of data is one of the main use cases for it), or are you looking for a solution that could be used in the installed client/Analyst, triggering the python data function regularly? Link to comment Share on other sites More sharing options...
Mitul Gandhi Posted December 17, 2022 Author Share Posted December 17, 2022 @Fredrik Rosell : Thanks for your reply. we are using Spotfire analyst 11.4,1 LTS for this python data function.. Link to comment Share on other sites More sharing options...
Andreas Laestadius Posted December 21, 2022 Share Posted December 21, 2022 @Mitul Gandhi There is little functionality out of the box to auto-refresh the installed client once an analysis file has been loaded. However, with a little work it is possible to:Create a data function that refresh automatically depending on a document property containing, say, the current time now.Create a JS function that updates the document property with the latest system time, initiating a refresh of the data function (since it "subscribes" on the change of value through the auto refresh setting in the data function)Create a JS function that executes (2) using a timerPut (2,3) in a TextArea/Mod.It is not fail proof, as the text area may be disposed when the page is navigated away from, causing the timer to cease running. But it should work for displaying a visualisation that has its underlying data (data function) run periodically.Hope this helps 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