在Spotfire中删除/删除或隐藏列

编程入门 行业动态 更新时间:2024-10-27 16:30:51
本文介绍了在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中删除/删除或隐藏列

本文发布于:2023-10-17 03:02:42,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1499586.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Spotfire

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!