文章目录
脚本的使用可以极大扩展spotfire的功能,但如何使用脚本一直不得其门而入,咨询厂商、查询资料,特此记录备忘。(持续更新)
ironpython脚本使用
参见官网教程;
部分参考资料如下:
- How to execute an IronPython script on initial load of an analysis using Data Functions in Spotfire:https://support.tibco.com/external/article?articleUrl=Tibco-KnowledgeArticle-Article-44163
调用print
新建文本区域-插入操作控件-脚本-点击运行
# Copy this IronPython code snippet by clicking the clipboard icon at right
# Then, paste it into the Spotfire IronPython script editor by pressing Ctrl+V
print "Success!"
How to execute an IronPython script on initial load of an analysis using Data Functions in Spotfire
以下为个人汉化,如有谬误,欢迎斧正,特此感谢厂商,作者的分享:
Description描述
正常情况下,Ironpython脚本在分析文件打开时不能被设置成自动执行,但可以通过使用操作控件按钮/链接/属性值变更的方式被动触发脚本执行。
一种方法是使用Custom DateTime Data Function,参见社区wiki:https://community.spotfire.com/articles/spotfire/custom-datetime-data-function-for-spotfire/
另一种