繁体   English   中英

Spotfire-IronPython:从Document.Pages获取可视化

[英]Spotfire-IronPython: Fetch visualization from Document.Pages

假设我在每个页面上都有一个Spotfire循环,如何获取每个页面的可视化效果?

for pg in Document.Pages:
    print pg.Title
    myPanel = pg.ActiveFilteringSelectionReference
    print '\t' + myPanel.Name
    # How to fetch vis from a Page? Assume each page has only one visualization
    viz=vis.As[ScatterPlot]()

最好的祝福,

像这样吗

#loop through all pages and visualizations, and print the Type of each visualization
for p in Document.Pages:
   print (p.Title)
   Document.Properties["scriptOutput"]+=p.Title+'\n'
   for v in p.Visuals: 
      print ('-' + v.Title + '('+ v.TypeId.Name +')')
      Document.Properties["scriptOutput"]+='-'+v.Title+'('+v.TypeId.Name+')\n'

您必须设置文档属性以显示结果,除非您在控制台中并读取输出。

请参阅此页面以获取更多信息: https : //community.tibco.com/wiki/loop-through-pages-and-visualization-tibco-spotfirer-using-ironpython-scripting

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM