在Spotfire中删除/删除或隐藏列 [英] Remove/ delete or hide column in spotfire
本文介绍了在Spotfire中删除/删除或隐藏列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在Spotfire中使用铁脚本删除/删除或隐藏列?
How to remove/delete or hide column using iron script in spotfire ?
要添加一列,我做了如下操作:
For adding a column i have done as follows:
`
curDT = Document.ActiveDataTableReference
cols = curDT.Columns
# targetCol = Document.Properties["myColumnSelection"]
#Create a new column that counts the comma delimiter
myExpression = '1+len(RXReplace([Cx],"([A-Za-z0-9]+)","","g"))'
myNewColName = cols.CreateUniqueName("NumElements")
cols.AddCalculatedColumn(myNewColName, myExpression)
`
推荐答案
是否仍然有帮助:
from Spotfire.Dxp.Application.Visuals import VisualContent
contentTable = myTableVisualization.As[VisualContent]()
if contentTable.TableColumns.Contains(myData.Columns["MyColumn"]):
contentTable.TableColumns.Remove(myData.Columns["MyColumn"])
这篇关于在Spotfire中删除/删除或隐藏列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文