簡體   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