S S 2 Posted January 10, 2019 Share Posted January 10, 2019 Hello, I have made a data function(triggerOnFilter) which gets triggered when a filter(City) is changed. The Data function changes the value of document property(stores the count of the selected cities) but the script associated with it(Script) is not getting executed whenever the document property value is changing. The script is working fine with no errors when I run it manually. The script sets the zoom slider range for all graphs to its maximum size. I have checked the box "Execute in Transaction" also in the script. For verification, I am displaying document property value for City Filter and toggle value for verification of execution of the script. Does anybody faced a similar problem and have any idea what could be the reason for this discrepancy Thanks in advance. Link to comment Share on other sites More sharing options...
Gaia Paolini Posted January 11, 2019 Share Posted January 11, 2019 Hi Can you give a sequence of actions when this does not work The data function changes the value of DocProperty to the number of cities selected. This works fine. Whenever DocProperty changes, then the script is activated and the value if scriptest toggles between 1 and 2. This also seems to work, and the range appearsextended to its max. The only case in which scriptest would not change value is when you select, say, a single city, then select another single city, as DocProperty would not change in this case. Maybe I did not understandthe intended result. Gaia Link to comment Share on other sites More sharing options...
S S 2 Posted January 18, 2019 Author Share Posted January 18, 2019 Hi Gaia, Thanks for your reply. Even I could see that the script is getting executed now and toggle values are getting changed. When I posted this question, it was not working out. Link to comment Share on other sites More sharing options...
Chad Holland Posted April 17, 2019 Share Posted April 17, 2019 Hey, I am still having this issue with a similar script. How did you get this working Note, I ahve already verified that my document property for count is actually changing, but my script will not run. Am I possibly missing a step that allows my application to execute the script when the property changes. Note, the property is changing as intended, the script is attached to the property and the script is select to execute when the value changes. Also, there are no issues with the script, if I run it manually it works perfectly. Link to comment Share on other sites More sharing options...
Chad Holland Posted April 18, 2019 Share Posted April 18, 2019 Nevermind, I don't know why or how, but apparently today the script has decided to run. Really annoying... Link to comment Share on other sites More sharing options...
Joshua Anderson Posted February 17, 2020 Share Posted February 17, 2020 I had a similar issue where my script was working when I ran it manually, but for whatever reason, was not triggering properly. The fix for me was just to save the visualization I was working on, then close the TIBCO Spotfire application and re-open it. Reloading the form seemed to fix the issue since my script 'magically' started working fine. Link to comment Share on other sites More sharing options...
Michael Zaragoza Posted April 9, 2020 Share Posted April 9, 2020 I have to 2nd it that this is the "fix". I had the exact same issue where my script would work when run manually but would not get triggered when the linked property value changed. But simply saving the visuallizaiton, closing Spotfire, then reopening and running the visulation resulted in everythign working as intended. 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