本文介绍了在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中删除/删除或隐藏列
发布评论