roe mon Posted July 26, 2021 Share Posted July 26, 2021 Hi, I have an analysis wherein i imported and data wrangled my data through open source R Script data function. One of my data source refreshes its data every 10mins and another data source refreshesevery 15mins. The data in my analysis only updates everytime I re-open the analysis. How can i refresh the data in my analysis Do i need to run again my open R source script data function for me to be able to refresh the data in my analysis I am currently using spotfire 10.3 version Link to comment Share on other sites More sharing options...
Fabian Duerr Posted July 27, 2021 Share Posted July 27, 2021 What is your final goal Should the analysis refresh automatically every X minutes when Spotfire is open This can probably be done with an IronPython script. Or do you want to have a button to start your data function Please use a text area and place an action control there. Link to comment Share on other sites More sharing options...
roe mon Posted July 27, 2021 Author Share Posted July 27, 2021 Hi, the final goal is to refresh the data with the new data from theweb using anaction button. I am relatively new to Iron Python and dont know how to go about the script. I tried copying the script from below link but it doesn'tseem to work https://community.spotfire.com/wiki/how-invoke-pre-defined-data-function-tibco-spotfire-using-ironpython-scripting Link to comment Share on other sites More sharing options...
Fabian Duerr Posted July 27, 2021 Share Posted July 27, 2021 The action button can trigger your R data function directly. There is no need for any iron python scripting if you only want to trigger a simple function. 1. create a new text area 2. right click: edit text area 3. insert action item -> data function (see snapshot) 4. name your button and select your function (see snapshot) PS: please use "Add Comment" for a regular reply. Only use "Answer" when you have the answer to the question. 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