https://docs.tibco.com/pub/spotfire_server/7.6.1/doc/html/tsas_admin_help/GUID-13E15745-41ED-4811-A263-20D84838EC1A.html
Dec 21, 2017
How to execute any IronPython script from the JavaScript (mashup API) in TIBCO Spotfire
How to execute any IronPython script from the JavaScript (mashup API) in TIBCO Spotfire
https://community.tibco.com/wiki/how-execute-any-ironpython-script-javascript-mashup-api-tibco-spotfirer
https://community.tibco.com/wiki/how-execute-any-ironpython-script-javascript-mashup-api-tibco-spotfirer
- Define the selected IronPython script to execute when the property is updated.
- Create a new document property in the Spotfire Analyst client and define a script trigger.
- Modify the property by calling the Document.setDocumentProperty method in the JavaScript code where you want the script to trigger
// Define the Spotfire handle
var webPlayer = new spotfire.webPlayer.Application(server, customization);
webPlayer.onOpened(onOpenedCallback);
...
// Callback triggered after analysis is opened
function onOpenedCallback(analysisDocument)
{
// Modify property to trigger Spotfire script xyz
analysisDocument.setDocumentProperty("abc", "");
}
Subscribe to:
Posts (Atom)