Product: TIBCO Spotfire®
TIBCO Spotfire Developer
Product: TIBCO Spotfire (desktop client / Analyst / Professional)
Version: All Supported Versions
OS: All Supported Operating Systems
• #load is the div tag which contains the python action control, i.e., the button.
• first-child is the first element in the div tag, in this case the python button.
• setinterval will call the python code every 1000 milliseconds as defined by the "1000" integer.
You can set the timer (ms) based on how frequently you want to invoke the script.
This is the underlying example HTML for the above script:
Current Date/Time -
The script code in this article is only a sample to be used as a reference. It is not intended to be used "As Is" in a Production environment. Always test in a Development environment. Make modifications to the script in accordance with your implementation specifications that best suit your business requirements. Refer to the API reference(s) cited in this article for usage of the classes and methods used in the script.
Trigger Python script from Java Script / JQuery