Nikita Belooussov Posted November 16, 2020 Share Posted November 16, 2020 Hi, I have several data on demand tables. I want to try to have a code that will run after the data inside the tables changes. I have tried using the automatic load for the r functions, but that does not seem to be working. I have also tried to run the code after the markings are set in the original table, but that also does not seem to work. Is there anyway of doing this The scripts I am trying to run are python, but if there is a way to do this in r, it will work too.I am running spotfire v7.11. Thanks Link to comment Share on other sites More sharing options...
Fabian Duerr Posted November 17, 2020 Share Posted November 17, 2020 I don't know if this will work but can you try to create a new doc property that takes for example a timestamp. Then update this timestamp whenever your data tables are refreshed. And then you could probably use a script with your doc property to start your code: Link to comment Share on other sites More sharing options...
Nikita Belooussov Posted November 17, 2020 Author Share Posted November 17, 2020 @fabd I am assuming you mean doing something like this: https://support.tibco.com/s/article/Tibco-KnowledgeArticle-Article-45663 I should have mentioned that I tried doing something like this but for some reason it does not work either. Link to comment Share on other sites More sharing options...
Fabian Duerr Posted November 17, 2020 Share Posted November 17, 2020 Yes, this is the approach I would go. How do you obtain/refresh your data tables With a data function If yes, then just create an additional output in your data function that updates this doc property. Can you give more details on how you tried this approach Link to comment Share on other sites More sharing options...
Nikita Belooussov Posted November 18, 2020 Author Share Posted November 18, 2020 So calling them a data on demand table might be slightly wrong, since they are the user input tables used to upload a new table, but I am assuming that they work the same way that data on demand do. I am updating them using a python script to change which values are marked, which updates the next table.I have tried having the python script updating a document property triggering the next script, which marks the rows and updates another document property for another one of these codes. I have also tried to update the tables in the one script with delays for the tables to load. Lastly I tried having the r script change the document property on the change of the tables to trigger the scripts. None of these worked. Link to comment Share on other sites More sharing options...
Fabian Duerr Posted November 18, 2020 Share Posted November 18, 2020 Sorry, I can't help further here. My experience with scripts is limited. 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