Script not getting executed upon document property change
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.
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.
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.